Draft site structure

This commit is contained in:
Nguyễn Gia Phong 2020-08-08 15:56:49 +07:00
parent eafad4b223
commit af8e02ec39
10 changed files with 53 additions and 30 deletions

View File

@ -15,9 +15,11 @@ jobs:
with:
python-version: 3.9.0-beta.4 - 3.9.0
- name: Install Sphinx
run: python -m pip install Sphinx
- name: Build Site
run: |
python -m pip install Sphinx
make html
- name: Configure git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -28,17 +30,12 @@ jobs:
https://token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY
git fetch origin gh-pages
- name: Build and Deploy
- name: Deploy Site
run: |
tmpdir=$(mktemp --directory)
make html
mv --target-directory=$tmpdir doctrees html
git switch gh-pages
git rm -r doctrees html
mv --target-directory=. $tmpdir/{doctrees,html}
rm -r $tmpdir
mv build/* .
git add doctrees html
git add .
git commit -m "Build at $(date --iso-8601=seconds)"
git push origin gh-pages

View File

View File

@ -1,12 +1,11 @@
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = .
# You can set these variables from the command line,
# and also from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:

View File

@ -1,4 +1,4 @@
# Continuous Documentation: Hosting Sphinx on GitHub Pages
# GitHub Pages Generated Using Sphinx
My personal site based on Michael Altfield's [idea].

View File

@ -1,2 +0,0 @@
<!-- Redirect to build/html -->
<meta HTTP-EQUIV="REFRESH" content="0; url=html/">

View File

@ -5,7 +5,7 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# Project information
project = 'R. McSinyx'
project = '/home/cnx'
copyright = '2018-2020, Nguyễn Gia Phong'
author = 'Nguyễn Gia Phong'
@ -24,10 +24,12 @@ exclude_patterns = []
# Options for HTML output
html_theme = 'alabaster'
html_theme_options = {'fixed_sidebar': True, 'show_relbars': True}
html_theme_options = {'fixed_sidebar': True}
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)

View File

@ -1,14 +1,35 @@
About Me
========
Hi! `My name is`_ Nguyễn Gia Phong. I'm a Vietnamese undergrad student
and a `free software`_ enthusiast. You can find me under my Internet alias
McSinyx on the Fediverse_:
* Matrix: `@McSinyx:matrix.org <https://matrix.to/#/@McSinyx:matrix.org>`_
* Email: mcsinyx@disroot.org
* Mastodon: `@mcsinyx@librem.one <https://social.librem.one/@mcsinyx>`_
I also use pretty much every social medium I advocate against:
.. raw:: html
<a href='https://github.com/McSinyx' class='fab fa-github'></a>
<a href='https://www.reddit.com/user/McSinyx' class='fab fa-reddit'></a>
<a href='https://twitter.com/McSinyx' class='fab fa-twitter'></a>
<a href='https://www.youtube.com/channel/UClm66NbBMdvA-RXvjDcT34w' class='fab fa-youtube'></a>
<a href='https://soundcloud.com/mcsinyx' class='fab fa-soundcloud'></a>
<a href='https://stackexchange.com/users/6379504/mcsinyx' class='fab fa-stack-exchange'></a>
<a href='https://www.facebook.com/McSinyx' class='fab fa-facebook'></a>
<a href='https://www.linkedin.com/in/raphael-mcsinyx-6871a719a' class='fab fa-linkedin'></a>
.. toctree::
:maxdepth: 2
:caption: Contents:
:hidden:
work/index
meat/index
math/index
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
.. _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

2
source/math/index.rst Normal file
View File

@ -0,0 +1,2 @@
Bootleg Lambda Calculus
=======================

2
source/meat/index.rst Normal file
View File

@ -0,0 +1,2 @@
Meatspace Adventures
====================

2
source/work/index.rst Normal file
View File

@ -0,0 +1,2 @@
Free Software Works
===================