awaragi / eleventy-plugin-plantuml Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
For large diagrams, when sending a request to the plantuml server, it can take a long time to get the result back. This results in 504 timeout errors breaking the 11ty build.
The sync-request
package used to get the diagram from the server supports passing options, where you can set number of retries and timeout settings.
It would be nice if it were possible to send these options via the config options for this plugin, which are then passed along to sync-request
.
Hi, thanks for creating this awesome plugin.
While I was trying to contribute, I found that some E2E test cases are failling.
It appears that the default PlantUML server, www.plantuml.com
, outputs differently unlike the past when test cases were created.
● Eleventy PlantUML Test Suite › Testing a e2e basic PNG conversion
expect(received).toBe(expected) // Object.is equality
Expected: "<img class=\"plantuml\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB3CAIAAABUh1OkAAAAKXRFWHRjb3B5bGVmdABHZW5lcmF0ZWQgYnkgaHR0cDovL3BsYW50dW1sLmNvbREwORwAAADiaVRYdHBsYW50dW1sAAEAAAB4nDWOwU7DQAxE75b6Dz4mh1QQQYVyqEqhgKpEqkjT+yYxYcXGrjbeIP6ebRHH8byZ8WZS4zWMbgFbaTFb46OzHWGBn+ScLGBD3F9tODjD2lQlzuQnK4y3y/wmz5erltTcJw1/sXwzdjKerSNUO1IKyeuhxEmCj529ndTbNmgMp7A3s8H3wBeuwItKjlWK9e7/iDuerRceiRX2p+oPwjfR+ix6hVd32dYq1uTjT3iq4Jk+THAao530locCm+NL9gCl4SGYIQ4Rw5PEAf8TvRp+AeZKU65rGWfwAAAIp0lEQVR4Xu2dW0wUVxzGQVGx4WIFLXhBEDSoraJUS1M1Vn3ok5f4YDRFYlpIMBAv1QJpBMFFlovEeEGkVjFFwyJKvQSbUqiuFySUCrRgQUVBCViKsEbjLcb+5dTx9JwddHf+M0PJ+fI9zM45Z+eb354butlxeCGEKgf2hJAyCaDIEkCRJYAiiwV6716XwZCakJC8ebNBS8fHG7ZsST53zszkYaRXPN5ygVmgyclpdXUtLS3duvjw4UKTycREoqVvPN58YBYogOebaebbt7t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dOkSbHVhW1ZRUcGWaaL+BvRFD1MfHx9vb2+YZ7OysjTusP0Q6Isepv7+/rANGDt2LMDVssMiA1VvsrdVElMiPz8/usOqlxMZqHQDfVYBAQFlZWX/m22TekFtFfRQ6JUEIgx82JDNnDkzJyeH9FD1cvZPoBJN4Ojr6xsREcHMoerl7IdAgSZ0SVjl6S7JSL2cyEDVm+zfUmQfyndJRurlRAaqr8RfSv1QAiiyBFBkIQNVb7LHlXo5kYGqtx3BlXo5BVBkCaDIEkCRhQxUvckeV+rlRAYqJIAiiwVqsVjS0rYnJ6du3ZqipQ0G47ZtxvPnzzN5GOkVj7dcYBZoamqGjs/XKSg43vvjf/SNx5sPzAJNSEjmm2nm1lZL74//0Tcebz4wC1T33/HpfUOjezzeTGABVKkFUGQLoMgWQJEtgCJba6D877X3bjWAyv2oNYrtBEr/Srh4/A9tRUDF4394KwIqZRKP/5GMAFQ8/oe2IqDi8T+8FQEVj//hrQgoPa+Lx/8QowEVj/8hVgRUPP6HtyKgROLxP7TtBKqZ7QCqrwVQZAugyBZAkS2AIlsARbYAimwBFNlvABofr+dXM+7csfQOVN94vPnALNCUlHQdvzyUn3+sqKiIiURL33i8+cAs0O5ui9GYnpSUkpi4TWMbDClmM/tlNkY6xuNtNTALVEihBFBkCaDIEkCR9Q9wwQ4NbycOmAAAAABJRU5ErkJggg==\" alt=\"Plantuml Diagram\" />"
^ diff starts here
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.