-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat!: move docs to website * feat: flesh out docs site * docs: add changelog to website * docs: fix `npins add` command snippet * docs: remove broken declarations * ci: remove local docgen * docs: update site FAQ
- Loading branch information
Showing
24 changed files
with
1,624 additions
and
2,825 deletions.
There are no files selected for viewing
This file contains 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 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,61 @@ | ||
name: Build & deploy website | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build site | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Nix | ||
uses: cachix/install-nix-action@v26 | ||
|
||
- name: Setup cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v6 | ||
|
||
- name: Run build | ||
run: | | ||
nix build \ | ||
--print-build-logs \ | ||
--show-trace \ | ||
'./dev#site' | ||
- name: Get artifact directory | ||
id: find-path | ||
run: | | ||
# exit if no `result` from `nix build` | ||
[ ! -L result ] && exit 1 | ||
echo "path=$(readlink -f result)" >> "$GITHUB_OUTPUT" | ||
- name: Upload Pages artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ${{ steps.find-path.outputs.path }} | ||
|
||
deploy: | ||
name: Deploy website | ||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deploy.outputs.page_url }} | ||
|
||
permissions: | ||
id-token: write | ||
pages: write | ||
|
||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deploy | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Oops, something went wrong.
This file contains 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,3 +1,8 @@ | ||
# mdbook artifacts | ||
**/book | ||
|
||
# nix artifacts | ||
result | ||
result-* | ||
repl-result-* | ||
|
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 @@ | ||
[book] | ||
title = "catppuccin/nix" | ||
authors = ["getchoo"] | ||
description = "Soothing pastel theme for Nix" | ||
language = "en" | ||
multilingual = false | ||
src = "src" | ||
|
||
[output.html] | ||
default-theme = "mocha" | ||
preferred-dark-theme = "mocha" | ||
additional-css = ["./theme/catppuccin.css"] | ||
no-section-label = true | ||
git-repository-url = "https://github.com/catppuccin/nix" | ||
git-repository-icon = "fa-github" | ||
cname = "nix.catppuccin.com" |
Oops, something went wrong.