Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
caa65b2
Add deploy_github_pages_docs_for_release.yaml and small fixes
tkilias Jul 23, 2021
5c0c3f7
integrated use of sphinx-github-pages-generator
MarleneKress79789 May 20, 2022
e2b59dd
integrated use of sphinx-github-pages-generator
MarleneKress79789 May 27, 2022
1a786b9
fix example in docu
MarleneKress79789 May 27, 2022
cc916e8
replace poe with nox
MarleneKress79789 Jun 16, 2022
91aee02
changed sgpg calls in workflows
MarleneKress79789 Jun 17, 2022
f5e0ead
typos
MarleneKress79789 Jun 17, 2022
5e19f8b
fix broken paths
MarleneKress79789 Jun 17, 2022
274b385
fix broken paths, tag
MarleneKress79789 Jun 17, 2022
6e9f897
code review changes
MarleneKress79789 Jun 17, 2022
ea21548
docu link in readme
MarleneKress79789 Jun 17, 2022
b262406
typo, setup.py
MarleneKress79789 Jun 17, 2022
760bc52
update building_documentation.rst
MarleneKress79789 Jun 17, 2022
ba27c1a
updated changes-md
MarleneKress79789 Jun 17, 2022
5469c66
Update doc/developer_guide/building_documentation.rst
MarleneKress79789 Jun 17, 2022
9bbf460
fix building_documentation.rst
MarleneKress79789 Jun 17, 2022
096d618
Merge remote-tracking branch 'origin/feature/38_publish_release_docs_…
MarleneKress79789 Jun 17, 2022
8035feb
Merge branch 'main' into feature/38_publish_release_docs_to_github_pages
MarleneKress79789 Jun 17, 2022
496204e
setup.py
MarleneKress79789 Jun 17, 2022
f6f8745
Extract common functions out of the sessions in noxfile.py
tkilias Jun 21, 2022
24721f5
Add type hint for nox session to noxfile.py
tkilias Jun 21, 2022
9426d8a
Replace xdg-open with python builtin webbrowser package
tkilias Jun 21, 2022
c2e3085
Rename BASE_PATH variable to base_path
tkilias Jun 21, 2022
637d00d
Add name and docstring to nox session. Set python to none for sessions.
tkilias Jun 22, 2022
45a7981
Set python to False for sessions to disable venv creation.
tkilias Jun 22, 2022
09de6cb
Fix nox session names in github actions and developer guide
tkilias Jun 22, 2022
a707c28
Merge remote-tracking branch 'origin/main' into feature/38_publish_re…
tkilias Jun 22, 2022
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
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Check documentation build and deployment for feature branch
name: Check the documentation build, publish if on main

on:
push:
# Only trigger if branches get pushed (ignored pushed a tag)
tags-ignore:
- '**'
branches-ignore:
- main
- github-pages/*
- github-pages/*

jobs:
create_github_pages_docs:
Expand All @@ -27,12 +29,12 @@ jobs:
poetry-version: 1.1.11
- name: Poetry install
run: poetry install
- name: Test documentation deployment for current feature branch
- name: Deploy documentation to github-pages branch
run: |
git config --local user.email "opensource@exasol.com"
git config --local user.name "GitHub Action"
git fetch
SOURCE_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
TARGET_BRANCH="$(doc/get_target_branch_name.sh "$SOURCE_BRANCH")"
poetry run poe push-html-doc-to-github-pages-current || echo
git push origin --delete "$TARGET_BRANCH"
poetry run python -m nox -s push-pages-current
- name: Cleanup delete target branch
if: ${{ !contains(github.ref, 'main') }}
run: git push -d origin "github-pages/"$(git branch --show-current)""
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
name: Build and push documentation for main branch
name: Generate release documentation

on:
push:
branches:
- main
release:
types: [published]
jobs:
create_github_pages_docs:

publish-release-documentation:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
runs-on: ubuntu-latest

environment: publish

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: 3.8
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.4
with:
poetry-version: 1.1.11
- name: Poetry install
run: poetry install
- name: Deploy documentation to github-pages-main branch
- name: Deploy release documentation to github-pages branch
run: |
git config --local user.email "opensource@exasol.com"
git config --local user.name "GitHub Action"
git fetch
poetry run poe push-html-doc-to-github-pages-main
poetry run python -m nox -s push-pages-release

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ poetry.lock

# Sphinx
doc/_build
doc/.build-docu
doc/api

# Language container
Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Or install the wheel directly via::
Documentation
-------------

`Documentation for the latest release <https://exasol.github.io/bucketfs-utils-python/main>`_ is hosted on the Github Pages of this project.
`Documentation for the current main branch <https://exasol.github.io/bucketfs-utils-python/main>`_ is hosted on the Github Pages of this project.
`Here <https://exasol.github.io/bucketfs-utils-python>`_ is a list of documentations for previous releases.

Features
========
Expand Down
30 changes: 0 additions & 30 deletions doc/Makefile

This file was deleted.

1 change: 1 addition & 0 deletions doc/changes/changes_0.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
## Refactoring

- #53: Upgraded Python version to >=3.8, removed numpy from source again
- #38: Replaced old bash scripts for building documentation with Sphinx_Github-Pages-generator, migrated to Nox

## Security

Expand Down
9 changes: 5 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
import os
import sys
# sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('../'))


# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -52,15 +53,15 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.build-docu']


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
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,
Expand Down
20 changes: 0 additions & 20 deletions doc/deploy-to-github-pages-current.sh

This file was deleted.

14 changes: 0 additions & 14 deletions doc/deploy-to-github-pages-main.sh

This file was deleted.

144 changes: 0 additions & 144 deletions doc/deploy-to-github-pages.sh

This file was deleted.

Loading