Skip to content

Commit

Permalink
Reworked landing page fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karurochari committed Dec 19, 2024
1 parent 05618cc commit 6f6c830
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ jobs:
python3-pip \
python3-setuptools
python3 -m pip install mkdocs mkdocs-github-admonitions-plugin mkdocs-get-deps pymdown-extensions
mkdir dist
doxygen
mkdocs build
bun install -g gh-pages
- name: Deploy
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
gh-pages -d dist -e . -u "github-actions-bot <[email protected]>"
gh-pages -d dist/website -e . -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ subprojects/*
*.autofrag.*
/dist/*
!/dist/website/
/dist/website/doxygen/*
/dist/website/docs/*
/node_modules/
/bun.lockb
/private/
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ PROJECT_LOGO =
# entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used.

OUTPUT_DIRECTORY = dist/doxygen
OUTPUT_DIRECTORY = dist/website/doxygen

# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
# sub-directories (in 2 levels) under the output directory of each output format
Expand Down
5 changes: 3 additions & 2 deletions dist/website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
}

main {
justify-items: center;
justify-content: center;
display: grid;
}
</style>
</head>
Expand All @@ -52,7 +53,7 @@
<a href="https://github.com/KaruroChori/vs-fltk"><button><i class="fa-brands fa-github"></i>
Source</button></a>
<a href="./docs"><button><i class="fa-solid fa-book"></i> Main documentation</button></a>
<a href="./doxygen"><button><i class="fa-solid fa-book"></i> Doxygen reference</button></a>
<a href="./doxygen/html"><button><i class="fa-solid fa-book"></i> Doxygen reference</button></a>
<button disabled>Online demo</button>
<button disabled><i class="fa-solid fa-comment"></i> Help</button>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
site_name: vs.fltk
repo_url: https://github.com/karurochori/vs-fltk
site_dir: dist/docs
site_dir: dist/website/docs
docs_dir: docs

theme:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"benchmark": "meson test --benchmark -C build/ --suite=vs-fltk",
"meson-install": "DESTDIR=./dist/ meson install -C build/",
"flatpak-builder": "cd flatpak && ./make.sh",
"gen-docs": "mkdir dist && doxygen && mkdocs build"
"gen-docs": "doxygen && mkdocs build"
},
"dependencies": {
"@libsql/client": "^0.14.0",
Expand Down

0 comments on commit 6f6c830

Please sign in to comment.