From 6f6c83034f92d10c2d089d1480a0977d108ba85e Mon Sep 17 00:00:00 2001 From: karurochari Date: Thu, 19 Dec 2024 15:08:14 +0000 Subject: [PATCH] Reworked landing page fix --- .github/workflows/docs.yml | 3 +-- .gitignore | 2 ++ Doxyfile | 2 +- dist/website/index.html | 5 +++-- mkdocs.yml | 2 +- package.json | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0ad09f8..8de073a 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 dab6159..f327965 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 f6cfd7e..1834569 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 e5e5b1f..cba9818 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 54ad5d9..d278407 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 59b9451..7f518a6 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",