Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update testworks documentation CI #171

Merged
merged 6 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading