Skip to content

Commit

Permalink
Merge pull request #171 from fraya/master
Browse files Browse the repository at this point in the history
Update testworks documentation CI
  • Loading branch information
fraya authored Feb 14, 2024
2 parents 64d6d82 + 63e19ff commit e00aa27
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,30 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# Until dylan-lang/install-dylan-tool
# updates the version
- name: Install Open Dylan
uses: dylan-lang/install-opendylan@v3
- name: Check links
uses: addnab/docker-run-action@v3
with:
version: 2023.1
tag: v2023.1.0
image: ghcr.io/fraya/dylan-docs
options: -v ${{ github.workspace }}/documentation:/docs
run: make linkcheck

- name: Install sphinx-extensions dependencies
run: |
dylan update
- name: Build docs with Furo theme
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/fraya/dylan-docs
options: -v ${{ github.workspace }}/documentation:/docs
run: make html

- name: Build docs
uses: ammaraskar/sphinx-action@master
- name: Upload html artifact
uses: actions/upload-artifact@v4
with:
pre-build-command: "echo furo >> documentation/requirements.txt"
docs-folder: "documentation/"
name: testworks-doc-html
path: documentation/build/html/

- name: Bypassing Jekyll on GH Pages
run: sudo touch documentation/build/html/.nojekyll

- name: Deploy documents to GH pages
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
_build
_build/
.idea
*.iml
_packages/
registry/
*~
documentation/build/
9 changes: 6 additions & 3 deletions documentation/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@

import os
import sys
# Substitute version '0.2.0' for 'current' when available
sys.path.insert(0, os.path.abspath('../../_packages/sphinx-extensions/0.2.0/src/sphinxcontrib'))
sys.path.insert(0, os.path.abspath('../../_packages/sphinx-extensions/current/src/sphinxcontrib'))
import dylan.themes as dylan_themes

# -- Project information -----------------------------------------------------

project = 'dylan-libraries'
copyright = '2023, Dylan Hackers'
author = 'Dylan Hackers'

release = 'v3.0.0'
version = release

# -- General configuration -----------------------------------------------------

Expand Down Expand Up @@ -110,3 +110,6 @@
epub_author = u'Dylan Hackers'
epub_publisher = u'Dylan Hackers'
epub_copyright = u'2023, Dylan Hackers'

# Ignore certification verification
tls_verify = False
3 changes: 0 additions & 3 deletions documentation/source/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ Testworks Reference
.. current-library:: testworks
.. current-module:: testworks

.. contents:: Contents
:local:

See also: :doc:`usage`

The *testworks* library exports a single module named *testworks*.
Expand Down
3 changes: 0 additions & 3 deletions documentation/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Testworks Usage
.. current-library:: testworks
.. current-module:: testworks

.. contents:: Contents
:local:

Testworks is a Dylan unit testing library.

See also: :doc:`reference`
Expand Down

0 comments on commit e00aa27

Please sign in to comment.