Repository navigation
Move the site to Zensical, and modernize its tooling #34
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
Open
patrick-5546
wants to merge
19
commits into
main
Choose a base branch
from
zensical
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
260f5ef
Manage the dependencies with uv, and run the tasks with make
patrick-5546 c37c4d3
Build the site with Zensical
patrick-5546 7d81bb3
Lint, build and deploy the site with GitHub Actions
patrick-5546 5c09ccc
Fix typos, broken links, and the glossary's definition of RAM
patrick-5546 05f5bad
Set up VS Code for Zensical Studio
patrick-5546 159c5ea
Document the setup in the README, and add agent instructions
patrick-5546 d8e082c
Document the ruleset that protects main
patrick-5546 60d25a2
Deploy the site in its own workflow
patrick-5546 c45c324
Rename the license file to LICENSE
patrick-5546 e169b53
Lint the Markdown with rumdl's defaults for MkDocs
patrick-5546 4bbed35
Fix a dead link, and brackets that read as a link
patrick-5546 f2cf466
Install lychee with uv, and check links with it in CI too
patrick-5546 88b7987
Space out the link checker's requests to each site
patrick-5546 b763e43
Load KaTeX's latest 0.x release, as Zensical's docs do
patrick-5546 686d843
Simplify the llms.txt sections, and drop old comments from the nav
patrick-5546 3853b00
Trim the VS Code setup
patrick-5546 9f17bce
Keep the Zensical page about Zensical
patrick-5546 b8f9ba5
Format the pages with Zensical Studio
patrick-5546 d050355
Fail the link check only on dead links
patrick-5546 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
| indent_style = space | ||
| # Python Markdown nests lists, and content in admonitions and tabs, by four spaces. | ||
| indent_size = 4 | ||
|
|
||
| [{*.js,*.json,*.yaml,*.yml}] | ||
| indent_size = 2 | ||
|
|
||
| [Makefile] | ||
| indent_style = tab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * text=auto eol=lf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # actionlint 1.7.12, its newest release, predates the ubuntu-26.04 runner label and reports it as | ||
| # unknown. It is GitHub's own, not a self-hosted runner's; remove it from this list once a release | ||
| # knows it (https://github.com/rhysd/actionlint/issues/683). | ||
| self-hosted-runner: | ||
| labels: | ||
| - ubuntu-26.04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: github-actions | ||
| directory: / | ||
| schedule: | ||
| interval: weekly | ||
| # Wait a week before adopting a new release. | ||
| cooldown: | ||
| default-days: 7 | ||
| groups: | ||
| actions: | ||
| patterns: ["*"] | ||
|
|
||
| - package-ecosystem: uv | ||
| directory: / | ||
| schedule: | ||
| interval: weekly | ||
| cooldown: | ||
| default-days: 7 | ||
| groups: | ||
| python: | ||
| update-types: [minor, patch] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| # A newer push to a pull request supersedes its run in progress; runs on main all finish. | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| env: | ||
| # Fail instead of updating uv.lock, including in the uv runs that make starts. | ||
| UV_LOCKED: "1" | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-26.04 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| # uv installs the Python that .python-version names. | ||
| - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 | ||
| - name: Lint | ||
| env: | ||
| # zizmor's online audits check the pinned actions against GitHub. | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: make lint | ||
|
|
||
| build: | ||
| runs-on: ubuntu-26.04 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| # Each page's revision date comes from its Git history. | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
| - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 | ||
| # A broken link or anchor, or a missing snippet, fails the build. | ||
| - name: Build | ||
| run: make build |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Deploy | ||
|
|
||
| # Deploys the site to GitHub Pages on every push to main, and on demand. The CI workflow checks pull | ||
| # requests, which the ruleset that protects main only lets merge once they pass. | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| # Deploy one push at a time, in order. | ||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
|
|
||
| env: | ||
| # Fail instead of updating uv.lock, including in the uv runs that make starts. | ||
| UV_LOCKED: "1" | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-26.04 | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| # Each page's revision date comes from its Git history. | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
| # uv installs the Python that .python-version names. | ||
| - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 | ||
| - name: Build | ||
| run: make build | ||
| - name: Upload the site | ||
| uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 | ||
| with: | ||
| path: site | ||
|
|
||
| deploy: | ||
| needs: build | ||
| runs-on: ubuntu-26.04 | ||
| timeout-minutes: 10 | ||
| permissions: | ||
| # deploy-pages publishes the site, proving the workflow's identity with an OIDC token. | ||
| pages: write | ||
| id-token: write | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - id: deployment | ||
| uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Links | ||
|
|
||
| # Other sites can change at any time, so lychee checks the links to them every week, and on demand. | ||
| # It also runs on pull requests that change how it checks them. The site's own links are checked by | ||
| # every build. | ||
| on: | ||
| schedule: | ||
| # Every Saturday at 11:00 UTC | ||
| - cron: "0 11 * * 6" | ||
| workflow_dispatch: | ||
| pull_request: | ||
| paths: | ||
| - .github/workflows/links.yml | ||
| - lychee.toml | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| # Fail instead of updating uv.lock, including in the uv runs that make starts. | ||
| UV_LOCKED: "1" | ||
|
|
||
| jobs: | ||
| lychee: | ||
| runs-on: ubuntu-26.04 | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0 | ||
| # uv installs the lychee that uv.lock pins, which reads lychee.toml. | ||
| - name: Check links | ||
| run: make links |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| # Python virtual environment | ||
| .venv/ | ||
|
|
||
| # Social plugin files | ||
| # The built site | ||
| site/ | ||
|
|
||
| # Build caches, such as the social cards | ||
| .cache/ | ||
|
|
||
| # lychee's cache of the links it checked | ||
| .lycheecache |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.15 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.