Skip to content

Commit

Permalink
docs: using docker to build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Jun 16, 2022
1 parent 25c5213 commit f499aae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,10 @@ jobs:
needs: continuous-integration
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2.1.1
with:
auto-activate-base: true
installer-url: https://github.com/conda-forge/miniforge/releases/download/4.10.1-0/Miniforge-pypy3-4.10.1-0-Linux-x86_64.sh
channels: anaconda,conda-forge,loop3d,conda-forge/label/cf202003
python-version: 3.8
- name: Build documentation
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
conda install -c conda-forge theano cython numpy pandas imageio scipy matplotlib sphinx sphinx-gallery sphinxcontrib-bibtex pydata-sphinx-theme myst-parser scikit-learn scikit-image pyamg flake8 pytest networkx python geopandas -y
pip install lavavu-osmesa
pip install .
cd docs
make html
- run: |
docker build . -t=lsdocs -f docs/Dockerfile
docker run -v $(pwd):/LoopStructural lsdocs bash LoopStructural/docs/build_docs.sh
release-please:
runs-on: ubuntu-latest
Expand Down
8 changes: 1 addition & 7 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,5 @@ RUN apt-get update -qq && \
make
RUN conda install -c conda-forge theano cython numpy pandas imageio scipy matplotlib sphinx sphinx-gallery sphinxcontrib-bibtex sphinx_rtd_theme myst-parser scikit-learn scikit-image pyamg flake8 pytest networkx -y
RUN pip install lavavu-osmesa
COPY . LoopStructural
#RUN git clone https://github.com/Loop3D/LoopStructural.git
WORKDIR LoopStructural
RUN pip install .
WORKDIR docs
RUN conda install -c conda-forge pydata-sphinx-theme
RUN python -c "import sphinx; print(sphinx.__version__)"
RUN make html
RUN mkdir LoopStructural
4 changes: 4 additions & 0 deletions docs/build_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd LoopStructural
pip install .
cd docs
make html

0 comments on commit f499aae

Please sign in to comment.