This repository contains the source for the website of Eclipse Sprotty:
The main repository is found at eclipse-sprotty/sprotty.
hugo
– Hugo content including static web pages and documentation in Markdown formattailwind
– Tailwind CSS configurationshowcase
– Live examples of Sprotty diagrams
The reference documentation is generated using TypeDoc and requires manual steps in order to be integrated into the website structure.
-
Install typedoc and typedoc-plugin-markdown globally
npm i -g typedoc typedoc-plugin-markdown
-
Navigate to the package you want to create the reference for (ex: sprotty-protocol)
-
Generate documentation
npx typedoc src/index --skipErrorChecking --plugin typedoc-plugin-markdown --flattenOutputFiles
-
This should have generated a new docs folder with many markdown files in the root of the package
-
Copy the content of this folder into the correct place in sprotty-website (hugo/content/docs/ref/[library]).
-
In sprotty-website run the
process-docs
script. This is needed to adapt the generated links to what hugo is expectingnpm run process-docs