Skip to content

Commit

Permalink
Restructure the doc. (#149)
Browse files Browse the repository at this point in the history
* Restructure the doc.

* Update Copyright and minor changes.
  • Loading branch information
esclapez authored Dec 7, 2022
1 parent bb8d273 commit 45a2053
Show file tree
Hide file tree
Showing 47 changed files with 448 additions and 222 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
Docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Dependencies
Expand All @@ -40,12 +40,12 @@ jobs:
echo "::remove-matcher owner=sphinx-problem-matcher-loose-no-severity::"
echo "::remove-matcher owner=sphinx-problem-matcher-loose::"
echo "::remove-matcher owner=sphinx-problem-matcher::"
touch ${{runner.workspace}}/build-docs/source/html/.nojekyll
touch ${{runner.workspace}}/build-docs/html/manual/html/.nojekyll
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/development'
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ${{runner.workspace}}/build-docs/source/html
FOLDER: ${{runner.workspace}}/build-docs/html
SINGLE_COMMIT: true
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
*.ex
tmp_build*


# Run output
*.p3d
plt*
*plt*old*
Backtrace*
*plt*old*
chk*
plt*
grdlog
temporals

# OSX files
.DS_Store
.AppleDouble
10 changes: 7 additions & 3 deletions Docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ find_package(Sphinx REQUIRED)
#find_package(Doxygen)

add_custom_target(sphinx ALL
COMMAND ${SPHINX_EXECUTABLE} -M html
"${CMAKE_CURRENT_SOURCE_DIR}/source" "${CMAKE_CURRENT_BINARY_DIR}/source"
-c ${CMAKE_CURRENT_SOURCE_DIR}/source)
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/html
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/source/landing
${CMAKE_BINARY_DIR}/html
COMMAND ${SPHINX_EXECUTABLE} -M html "${CMAKE_SOURCE_DIR}/source/manual"
"${CMAKE_BINARY_DIR}/html/manual"
-c ${CMAKE_SOURCE_DIR}/source/manual
)
6 changes: 3 additions & 3 deletions Docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#

# You can set these variables from the command line.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = PeleLMeX
SOURCEDIR = source
SOURCEDIR = source/manual
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
Expand Down
171 changes: 0 additions & 171 deletions Docs/source/Model.rst

This file was deleted.

Empty file added Docs/source/landing/.nojekyll
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ <h4>Acknowledgment</h4>
<div class="row">
<div class="8u 12u$(medium)">
<ul class="copyright">
<li>National Renewable Energy Laboratory (NREL), Golden, CO (United States) </li>
</ul>
<li>&copy; Alliance for Sustainable Energy, LLC and The Regents of the University of California, through Lawrence Berkeley National Laboratory
All rights reserved.</li>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions Docs/landing/help.html → Docs/source/landing/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ <h1><a href="index.html">PeleLMeX</a></h1>
<div class="row">
<div class="8u 12u$(medium)">
<ul class="copyright">
<li>&copy; PeleLMeX development team. All rights reserved.</li>
</ul>
<li>&copy; Alliance for Sustainable Energy, LLC and The Regents of the University of California, through Lawrence Berkeley National Laboratory
All rights reserved.</li>
</div>
</div>
</div>
Expand Down
File renamed without changes
File renamed without changes
Loading

0 comments on commit 45a2053

Please sign in to comment.