mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
ci: Build and publish docs
This commit is contained in:
parent
55e08e4f52
commit
c1ee4151d0
2 changed files with 25 additions and 4 deletions
|
@ -1,8 +1,29 @@
|
|||
test:
|
||||
stages:
|
||||
- build
|
||||
- pages
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- dnf install -y meson python3-mypy
|
||||
- dnf install -y meson python3-mypy python3-sphinx python3-pip
|
||||
- pip3 install furo
|
||||
- mypy gtkblueprinttool
|
||||
- meson _build
|
||||
- meson _build -Ddocs=true
|
||||
- ninja -C _build
|
||||
- ninja -C _build test
|
||||
- ninja -C _build install
|
||||
artifacts:
|
||||
paths:
|
||||
- _build
|
||||
|
||||
pages:
|
||||
stage: pages
|
||||
dependencies:
|
||||
- build
|
||||
script:
|
||||
- mv _build/docs/en public
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- main
|
||||
|
|
|
@ -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
|
||||
# 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,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue