ci: Build and publish docs

This commit is contained in:
James Westman 2021-10-27 10:25:39 -05:00
parent 55e08e4f52
commit c1ee4151d0
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
2 changed files with 25 additions and 4 deletions

View file

@ -1,8 +1,29 @@
test: stages:
- build
- pages
build:
stage: build
script: script:
- dnf install -y meson python3-mypy - dnf install -y meson python3-mypy python3-sphinx python3-pip
- pip3 install furo
- mypy gtkblueprinttool - mypy gtkblueprinttool
- meson _build - meson _build -Ddocs=true
- ninja -C _build - ninja -C _build
- ninja -C _build test - ninja -C _build test
- ninja -C _build install - ninja -C _build install
artifacts:
paths:
- _build
pages:
stage: pages
dependencies:
- build
script:
- mv _build/docs/en public
artifacts:
paths:
- public
only:
- main

View file

@ -44,7 +44,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
# #
html_theme = 'sphinx_rtd_theme' html_theme = 'furo'
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files, # relative to this directory. They are copied after the builtin static files,