-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-countrate-correction-lut
- Loading branch information
Showing
266 changed files
with
5,367 additions
and
3,877 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.bat text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
name: nexusformat | ||
|
||
channels: | ||
- defaults | ||
- conda-forge | ||
- aps-anl-tag | ||
|
||
dependencies: | ||
- pip | ||
- pip: | ||
- -r file:requirements.txt | ||
- lxml | ||
- pyRestTable | ||
- Sphinx | ||
- six |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
name: Publish Sphinx Docs to GitHub Pages | ||
|
||
on: | ||
# Triggers the workflow on push events but only for the main branch | ||
push: | ||
branches: | ||
- main | ||
|
||
# see: https://sphinx-notes.github.io/pages/ | ||
# see: https://github.com/marketplace/actions/sphinx-to-github-pages | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo | ||
|
||
- name: Install build requirements | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Diagnostic | ||
run: | | ||
pip list | ||
- name: Run the test suite | ||
run: | | ||
# stops publishing when known problems are found | ||
python utils/test_suite.py | ||
- name: Prepare for out-of-source Sphinx build | ||
run: | | ||
rm -rf ./build | ||
mkdir ./build | ||
python ./utils/build_preparation.py . ./build | ||
- name: Diagnostic | ||
run: | | ||
ls -lAFGh | ||
ls -lAFGh ./build | ||
- name: Install LaTeX | ||
run: | | ||
sudo apt-get update -y && \ | ||
sudo apt-get install -y \ | ||
latexmk \ | ||
texlive-latex-recommended \ | ||
texlive-latex-extra \ | ||
texlive-fonts-recommended | ||
- name: Build impatient guide | ||
run: | | ||
make -C ./build/impatient-guide html latexpdf | ||
ls -lAFGh ./build/impatient-guide/_build/latex/*.pdf | ||
# Copy to documentation source directory | ||
cp \ | ||
./build/impatient-guide/_build/latex/NXImpatient.pdf \ | ||
./build/manual/source/_static/ | ||
- name: Build PDF of manual | ||
run: | | ||
# expect next make (PDF) to fail (thus exit 0) | ||
# since nexus.ind not found first time | ||
# extra option for "levels nested too deeply" error | ||
( \ | ||
make latexpdf \ | ||
LATEXOPTS="--interaction=nonstopmode" \ | ||
-C build/manual \ | ||
|| exit 0 \ | ||
) | ||
# make that missing file | ||
makeindex build/manual/build/latex/nexus.idx | ||
# build the PDF, still a failure will be noted | ||
# but we can ignore it without problem | ||
( \ | ||
make latexpdf \ | ||
LATEXOPTS="--interaction=nonstopmode" \ | ||
-C build/manual \ | ||
|| exit 0\ | ||
) | ||
# Copy to documentation source directory | ||
cp \ | ||
./build/manual/build/latex/nexus.pdf \ | ||
./build/manual/source/_static/NeXusManual.pdf | ||
- name: Include other PDFs | ||
run: | | ||
wget https://github.com/nexusformat/code/raw/master/doc/api/NeXusIntern.pdf -O ./build/manual/source/_static/NeXusIntern.pdf | ||
wget https://github.com/nexusformat/code/raw/master/applications/NXtranslate/docs/NXtranslate.pdf -O ./build/manual/source/_static/NXtranslate.pdf | ||
- name: Build (html) and Commit | ||
uses: sphinx-notes/pages@master | ||
with: | ||
# path to conf.py directory | ||
documentation_path: build/manual/source | ||
|
||
- name: Publish if refs/tags | ||
# remove/comment next line to push right away | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<?eclipse-pydev version="1.0"?><pydev_project> | ||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property> | ||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property> | ||
|
||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property> | ||
|
||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 3.7</pydev_property> | ||
|
||
</pydev_project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.