Skip to content

Commit

Permalink
Migrate website from mdBook to Hugo Hextra theme
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Sep 23, 2024
1 parent 1b461f6 commit 922ece2
Show file tree
Hide file tree
Showing 42 changed files with 200 additions and 304 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install just
uses: taiki-e/install-action@v2
Expand All @@ -30,21 +32,22 @@ jobs:
- name: Install Python build dependencies
run: python -m pip install jmespath

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
- name: Install Hugo
uses: peaceiris/actions-hugo@v3
with:
mdbook-version: 'latest'
hugo-version: '0.111.3'
# extended: true

- name: Generate reference documentation
run: cd docs && just refdoc
run: cd website && just refdoc

- name: Build mdBook
run: cd docs && just build
- name: Build site
run: cd website && just build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/book
publish_dir: ./website/public
cname: www.bbox.earth
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "website/themes/hextra"]
path = website/themes/hextra
url = https://github.com/pka/hextra
branch = backport-debian
14 changes: 0 additions & 14 deletions docs/book.toml

This file was deleted.

34 changes: 0 additions & 34 deletions docs/src/SUMMARY.md

This file was deleted.

244 changes: 0 additions & 244 deletions docs/theme/css/general.css

This file was deleted.

1 change: 1 addition & 0 deletions docs/.gitignore → website/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/public
reference.md
Loading

0 comments on commit 922ece2

Please sign in to comment.