diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0ad09f8d..8de073ac 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 " + gh-pages -d dist/website -e . -u "github-actions-bot " env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index dab61593..f3279659 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ subprojects/* *.autofrag.* /dist/* !/dist/website/ +/dist/website/doxygen/* +/dist/website/docs/* /node_modules/ /bun.lockb /private/ diff --git a/Doxyfile b/Doxyfile index f6cfd7e6..1834569f 100644 --- a/Doxyfile +++ b/Doxyfile @@ -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 diff --git a/dist/website/index.html b/dist/website/index.html index e5e5b1fd..cba98186 100644 --- a/dist/website/index.html +++ b/dist/website/index.html @@ -31,7 +31,8 @@ } main { - justify-items: center; + justify-content: center; + display: grid; } @@ -52,7 +53,7 @@ - + diff --git a/mkdocs.yml b/mkdocs.yml index 54ad5d94..d2784078 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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: diff --git a/package.json b/package.json index 59b9451b..7f518a68 100644 --- a/package.json +++ b/package.json @@ -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",