Skip to content
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
59 changes: 59 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
name: Docs

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.11"
- uses: pre-commit/action@v3.0.1

build:
runs-on: ubuntu-latest
defaults:
# This is necessary due to the use of the setup-miniconda action below. See their documentation
# at https://github.com/conda-incubator/setup-miniconda#usage-examples
run:
shell: bash -el {0}
Comment thread
anderslindho marked this conversation as resolved.
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- uses: conda-incubator/setup-miniconda@v4
with:
environment-file: environment.yml
Comment thread
anderslindho marked this conversation as resolved.
- run: sphinx-build -M html src build
- uses: actions/upload-pages-artifact@v5
with:
path: build/html

deploy:
needs: build
Comment thread
simon-ess marked this conversation as resolved.
if: github.ref == 'refs/heads/main'
Comment thread
simon-ess marked this conversation as resolved.
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5
29 changes: 0 additions & 29 deletions .gitlab-ci.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# e3 documentation

Source for e3 documentation hosted on GitLab pages: https://e3.pages.ess.eu

The URL relies on this project's path, see https://docs.gitlab.com/user/project/pages/getting_started_part_one/#gitlab-pages-default-domain-names.
Source for e3 documentation hosted on GitHub pages: https://epics-e3.github.io

The documentation is built using
[Sphinx](http://www.sphinx-doc.org/en/master/index.html) and
Expand Down
18 changes: 9 additions & 9 deletions src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

# The full version, including alpha/beta/rc tags
try:
# CI_COMMIT_REF_NAME is defined by GitLab Runner
# The branch or tag name for which project is built
release = os.environ["CI_COMMIT_REF_NAME"]
# GITHUB_REF_NAME is defined by a github runner, and is
# the branch or tag name for which project is built
#
# See https://docs.github.com/en/actions/reference/workflows-and-actions/variables
release = os.environ["GITHUB_REF_NAME"]
except KeyError:
# Fallback in dev mode
release = os.popen("git describe").read().strip()
Expand Down Expand Up @@ -56,16 +58,14 @@
html_theme_options = {
"navigation_with_keys": True,
"top_of_page_button": "edit",
"source_repository": "https://gitlab.esss.lu.se/e3/e3.pages.ess.eu",
"source_repository": "https://github.com/epics-e3/epics-e3.github.io",
"source_branch": "main",
"source_directory": "src/",
"source_edit_link": "https://gitlab.esss.lu.se/e3/e3.pages.ess.eu/-/edit/main/src/{filename}",
"source_view_link": "https://gitlab.esss.lu.se/e3/e3.pages.ess.eu/-/blob/main/src/{filename}",
"sidebar_hide_name": False,
"footer_icons": [
{
"name": "GitLab",
"url": "https://gitlab.esss.lu.se/e3/e3.pages.ess.eu",
"name": "GitHub",
"url": "https://github.com/epics-e3/epics-e3.github.io",
"html": "",
"class": "",
},
Expand Down Expand Up @@ -101,7 +101,7 @@

intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
"e3": ("https://e3.pages.ess.eu/", None),
"e3": ("https://epics-e3.github.io/", None),
Comment thread
lucmaga marked this conversation as resolved.
"epics": ("https://docs.epics-controls.org/en/latest/", None),
}

Expand Down
Loading