Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MkDocs to generate static documentation (with GitHub workflows > GitHub Pages) #19

Open
SableRaf opened this issue Jul 30, 2024 · 5 comments

Comments

@SableRaf
Copy link
Collaborator

SableRaf commented Jul 30, 2024

I suggest using MkDocs to generate static documentation for libraries. For library creators, this would make it easier to fullfil the requirement of creating and hosting a documentation website for their library. Hosting on GitHub pages would also make it less likely for those library websites to go 404 in the future (as long as GitHub Pages exists).

See the way @fredegd deploys the doc for their EasyEase library:

Same for the FIP library by @prontopablo:

@SableRaf SableRaf changed the title Use MkDocs + GitHub Pages + GitHub workflows to deploy static documentation Use MkDocs to generate static documentation (with GitHub workflows > GitHub Pages) Jul 30, 2024
@SableRaf
Copy link
Collaborator Author

SableRaf commented Jul 31, 2024

Some context for @prontopablo and @fredegd: this repo was created by our pr05 grant recipient @mingness to work on an official Gradle template for Processing libraries. With your recent experience publishing Processing library documentation using MkDocs, your input on this would be greatly appreciated!

@prontopablo
Copy link

Hey everyone. I found MkDocs, particularly Material for MkDocs, very handy to use. With MkDocs, you write in Markdown, and it generates static HTML files for you. This is different from other tools like docsify, which don't produce static HTML that you can bundle with your library as offline documentation. Also, you can easily enable or disable great features like code embedding through the configuration file. If you have any specific questions, I'd be happy to help!

@mingness
Copy link
Collaborator

Thanks for this issue @SableRaf ! I now understand better the situation. Thanks @prontopablo and @fredegd for seeking a better solution. I will use your repos as models, and will reach out with specific questions if needed. 🙏

@fredegd
Copy link

fredegd commented Aug 1, 2024

Hello issue group 👋🏻! I agree with @prontopablo about the usability of MkDocs; especially when it comes to create static web pages wich be visited locally aka offline.
As workflow would recommend to use MkDocs and let it build the static HTML documentation directly into the /reference folder wich will be added by gradle directly into the Release's reference/

@mingness
Copy link
Collaborator

mingness commented Sep 5, 2024

Thanks @prontopablo and @fredegd for the examples of your libraries and mkdocs sites. I referred to them many times while working on this part of the library template. There is now a PR adding more content to the docs for the template.

#46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants