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

drop nsls2forge #765

Merged
merged 11 commits into from
Dec 13, 2022
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
46 changes: 29 additions & 17 deletions .github/workflows/publish-docs.yml → .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ on:
required: true
default: false

# see: https://sphinx-notes.github.io/pages/
# see: https://github.com/marketplace/actions/sphinx-to-github-pages
defaults:
run:
shell: bash -l {0}

jobs:

publish-docs:
name: Publish documentation
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-python@v2

- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo

- name: Deploy Information
if: ${{ github.event.inputs.deploy }}
Expand All @@ -41,7 +41,8 @@ jobs:

- name: Install pandoc
run: |
sudo apt-get update && sudo apt-get -y install pandoc python3-pip
sudo apt-get update && \
sudo apt-get -y install pandoc

- name: Install Sphinx build requirements
run: |
Expand All @@ -51,19 +52,30 @@ jobs:
run: |
pip install --no-deps -e .

- name: Diagnostics
- name: Diagnostic
run: |
pip list
echo $(which pandoc)
echo $(which sphinx-build)

- name: Build and Commit
uses: sphinx-notes/pages@master
with:
# path to conf.py directory
documentation_path: docs/source
- name: Sphinx
run: |
make -C docs html

# - name: Integrity check
# run: |
# sphinx-build \
# docs/source \
# -W \
# -b linkcheck \
# -d \
# docs/build/doctrees \
# docs/html

- name: Publish (push gh-pages branch) only on demand
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event.inputs.deploy }}
uses: ad-m/github-push-action@master
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
publish_dir: _build/
force_orphan: true
12 changes: 8 additions & 4 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ describe the future plans.

release expected by 2023-02-01

..
1.6.10
******
1.6.10
******

release expected by 2023-01-06

Maintenance
------------

release expected by 2023-01-06
* Remove ``nsls2forge`` channel from conda environment.

1.6.9
******
Expand Down
3 changes: 0 additions & 3 deletions apstools/callbacks/tests/test_filewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,10 @@ def test_SpecWriterCallback_writer_default_name(cat, tempdir):
assert scan.header.raw.find("\n#O0 \n") > 0
assert scan.header.raw.find("\n#o0 \n") > 0
assert len(scan.header.O) == 1
assert len(scan.header.O[0]) == 0
assert len(scan.header.o) == 1
assert len(scan.header.o[0]) == 0

assert scan.raw.find("\n#P0 \n") > 0
assert len(scan.P) == 1
assert len(scan.P[0]) == 0
assert len(scan.positioner) == 0


Expand Down
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = """
IPython.sphinxext.ipython_console_highlighting
IPython.sphinxext.ipython_directive
sphinx.ext.autodoc
sphinx.ext.autosummary
sphinx.ext.coverage
Expand Down Expand Up @@ -76,5 +78,6 @@
psutil
pyRestTable
pysumreg
spec2nexus
xarray
""".split()
2 changes: 0 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ channels:
- aps-anl-tag
- conda-forge
- defaults
# nsls2forge channel for newer mongoquery 1.3.6 (issue #673)
- nsls2forge

dependencies:
- python >=3.8, <=3.11
Expand Down
4 changes: 3 additions & 1 deletion requirements-sphinx.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
ipython
jinja2 >=3.0
markupsafe ==2.0.1
myst-parser
nbsphinx
pydata-sphinx-theme
pygments >=2.12
jinja2 >=3.0
pygments-ipython-console
setuptools-scm