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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a website documentation #287

Merged
merged 3 commits into from
Feb 19, 2024
Merged

Add a website documentation #287

merged 3 commits into from
Feb 19, 2024

Conversation

pyrech
Copy link
Member

@pyrech pyrech commented Feb 19, 2024

Tl;Dr: you can play with the website here atm: https://castor.jolicode.com

Summary

I tested different static website generator (Jekyll, hugo) or saw old ones on github but they were either

  • not easy to install/build on GH Pages
  • not maintained
  • not providing a nice theme
  • not adapted for markdown documentation
  • in javascript.

I finally give a try to mkdocs and the material theme and it seems perfect for castor documentation website, so here it is 馃帀

Featuring:

  • slightly improved documentation tree
  • statically built (no js) and deploy from a GitHub Action on GitHub Pages
  • code coloration and copy widget
  • support of GitHub Markdown "alerts" (tips, warning, info, etc)
  • search bar (and a S keyboard shortcut) + highlight of matches
  • light and dark themes
  • links to edit the page on GitHub
  • anchors for each title
  • mobile friendly
  • navigation tree partially generated automatically from the _nav.md file
  • list of some real world Castor usage

Preview

A preview is available here: https://castor.jolicode.com

Screenshots

Homepage

Homepage

Getting started - scrolled down

Getting started - scrolled down

Search + highlight

Search + highlight

Examples + dark mode

Examples + dark mode

Todo

  • Squash the commits
  • Setup GitHub Pages
  • Setup the custom domain name
  • Setup redirection.io hosted instance
  • Crawl with redirection.io to ensure there is no 404

@lyrixx

This comment was marked as resolved.

Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice !

.github/workflows/documentation.yml Outdated Show resolved Hide resolved
.github/workflows/documentation.yml Outdated Show resolved Hide resolved
Comment on lines +34 to +31
- name: Configure Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello my old friend 馃槵

@pyrech pyrech force-pushed the website-documentation branch 2 times, most recently from 8138305 to 448ca0d Compare February 19, 2024 11:11
Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice (except the branch to remove in GHA config)

@pyrech pyrech merged commit 77100e0 into main Feb 19, 2024
8 checks passed
@pyrech pyrech deleted the website-documentation branch February 19, 2024 12:37
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.

None yet

2 participants