From 18b7df93958f18362e329ea6cf80d03e900a1695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Tue, 13 Oct 2020 12:11:13 +0700 Subject: [PATCH] Add my start page --- .github/workflows/build.yml | 24 +++-------------- source/conf.py | 5 ++-- source/index.rst | 3 ++- source/templates/start.html | 52 +++++++++++++++++++++++++++++++++++++ source/works.rst | 2 +- 5 files changed, 62 insertions(+), 24 deletions(-) create mode 100644 source/templates/start.html diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77ed030..1d667df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,24 +23,8 @@ jobs: python -m pip install Sphinx furo make html - - name: Configure git - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git config user.email mcsinyx@disroot.org - git config user.name Nguyễn\ Gia\ Phong - git remote set-url origin \ - https://token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY - git fetch origin gh-pages - - name: Deploy Site - run: | - git switch gh-pages - git rm -r . - shopt -s dotglob - mv build/html/* . - - rm -r build - git add . - git commit -m "Build at $(date --iso-8601=seconds)" - git push origin gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build/html diff --git a/source/conf.py b/source/conf.py index e65592a..73b6600 100644 --- a/source/conf.py +++ b/source/conf.py @@ -17,7 +17,7 @@ extlinks = {'pip': ('https://github.com/pypa/pip/pull/%s', 'GH-'), 'github': ('https://github.com/%s', '@')} # Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] +templates_path = ['templates'] # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. @@ -32,7 +32,6 @@ html_theme_options = {'css_variables': { html_title = 'Raphael McSinyx' html_logo = 'CnX.png' html_favicon = 'favicon.ico' -html_css_files = ['fab.css'] html_show_copyright = False # Add any paths that contain custom static files (such as style sheets) @@ -40,3 +39,5 @@ html_show_copyright = False # static files, so a file named "default.css" will overwrite the builtin # "default.css". html_static_path = ['static'] +html_css_files = ['fab.css'] +html_additional_pages = {'start': 'start.html'} diff --git a/source/index.rst b/source/index.rst index b4d1476..cf1eb2d 100644 --- a/source/index.rst +++ b/source/index.rst @@ -9,7 +9,7 @@ McSinyx on the Fediverse_: * Email: mcsinyx@disroot.org * Mastodon: `@mcsinyx@librem.one `_ -I also use pretty much every social medium I advocate against: +I also use_ pretty much every social medium I advocate against: .. raw:: html @@ -37,5 +37,6 @@ a `Creative Commons Attribution-ShareAlike 4.0 International License`_. .. _My name is: https://www.youtube.com/watch?v=LDj8kkVwisY .. _free software: https://www.gnu.org/philosophy/free-sw.html .. _Fediverse: https://en.wikipedia.org/wiki/Fediverse +.. _use: start.html .. _Creative Commons Attribution-ShareAlike 4.0 International License: http://creativecommons.org/licenses/by-sa/4.0/ diff --git a/source/templates/start.html b/source/templates/start.html new file mode 100644 index 0000000..e72ab1f --- /dev/null +++ b/source/templates/start.html @@ -0,0 +1,52 @@ + + + + + Start Page + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/works.rst b/source/works.rst index cb9e3a6..a66f22e 100644 --- a/source/works.rst +++ b/source/works.rst @@ -119,7 +119,7 @@ and a few *awesome* helper functions that make it easier to register timers, suspend widgets and so on. Vicious doesn't depend on any third party Lua__ library, but may depend on additional system utilities. -__ https://vicious.readthedocs.io +__ https://vicious.rtfd.io __ https://awesomewm.org __ https://www.lua.org