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

MkDocs integration with GitHub Pages #3

Merged
merged 3 commits into from
Apr 18, 2024
Merged

MkDocs integration with GitHub Pages #3

merged 3 commits into from
Apr 18, 2024

Conversation

dmotte
Copy link
Member

@dmotte dmotte commented Apr 7, 2024

I recently set up MkDocs integration with GitHub Pages on a repository of mine: basically I wrote a script to run MkDocs inside GitHub Actions, that automatically generates a proper (static) website that is well-organized, searchable, etc. and uses the Material for MkDocs theme.

So I thought it would be nice to configure KnowledgeBass in a similar way to get the same result. I got something that looks like this:

screen01
screen02

If you want to give it a try locally before approving this PR, you can download the generated zip file from the Artifacts section of the latest GitHub Actions workflow run (at the moment this one: https://github.com/violinminds/knowledgebass/actions/runs/8590462276). There is only one artifact, named github-pages.

In this PR I'm providing some basic configuration (mostly based on mine), but, if you like this idea, feel free to customize the config files as you wish 🙂


Note: to make this work, we have to set the GitHub Pages source to "GitHub Actions" in the repo settings before merging this PR, like this:

screen-repo-settings

@dmotte dmotte requested a review from aetonsi April 7, 2024 17:59
@dmotte dmotte self-assigned this Apr 7, 2024
@dmotte dmotte merged commit 9672ec1 into main Apr 18, 2024
4 checks passed
@dmotte dmotte deleted the pr-mkdocs-ghpages branch April 18, 2024 18:17
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

Successfully merging this pull request may close these issues.

1 participant