-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Big update, Docker, CICD, css, banner, standalone
- Loading branch information
1 parent
d015d69
commit f52cc0d
Showing
147 changed files
with
709 additions
and
40,042 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,36 @@ | ||
name: Cloud Docs CI/CD | ||
|
||
on: | ||
push: | ||
paths: | ||
- cisl-docs/** | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Step 1 is to checkout the github repo | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Python dependencies | ||
run: | | ||
sudo apt-get install python3-pip | ||
pip install ghp-import | ||
pip install jupyter-book | ||
pip install sphinx_pythia_theme | ||
PATH="${PATH}:${HOME}/.local/bin" | ||
- name: Build book HTML | ||
run: | | ||
jupyter-book build docs/. | ||
- name: Push _build/html to gh-pages | ||
run: | | ||
sudo chown -R $(whoami):$(whoami) . | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "$GITHUB_ACTOR" | ||
git remote set-url origin "https://$GITHUB_ACTOR:${{ secrets.NC_GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY" | ||
ls -lrt | ||
ghp-import -n -p -f docs/_build/html |
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,5 @@ | ||
# Use the Apache HTTP server image | ||
FROM httpd:2.4 | ||
|
||
# Copy HTML files created by `jupyter-book build .` in to directory apache serves out of | ||
COPY cisl-docs/_build/html/. /usr/local/apache2/htdocs/ |
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
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
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
File renamed without changes.
File renamed without changes.
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,39 @@ | ||
<ul id="navbar-main-elements" class="navbar-nav"> | ||
{% for navbar_link in theme_navbar_links %} | ||
{% if "dropdown" in navbar_link and navbar_link.dropdown %} | ||
<div class="dropdown"> | ||
{% if "external" in navbar_link and navbar_link.external %} | ||
{% set external = '<i class="fas fa-external-link-alt"></i>' %} | ||
{% else %} | ||
{% set external = '' %} | ||
{% endif %} | ||
<li class="nav-item"> | ||
<button class="dropbtn"> | ||
{{ _(navbar_link.name) }} <i class="fa fa-chevron-down" style="color: #000000;"></i> | ||
</button> | ||
</li> | ||
<div class="dropdown-content"> | ||
{% for dropdown_link in navbar_link.dropdown_links %} | ||
<a class="dropdown-link" href="{{ spt_pathto(dropdown_link.url) }}"> | ||
{{ _(dropdown_link.name) }} | ||
</a><br> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% else %} | ||
{% if "external" in navbar_link and navbar_link.external %} | ||
{% set external = '<i class="fas fa-external-link-alt"></i>' %} | ||
{% else %} | ||
{% set external = '' %} | ||
{% endif %} | ||
<li class="nav-item"> | ||
<a class="nav-link nav-internal" href="{{ spt_pathto(navbar_link.url) }}">{{ _(navbar_link.name) }}{{ external }}</a> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
{% for external_link in theme_external_links %} | ||
<li class="nav-item"> | ||
<a class="nav-link nav-external" href="{{ external_link.url }}">{{ _(external_link.name) }}<i class="fas fa-external-link-alt"></i></a> | ||
</li> | ||
{% endfor %} | ||
</ul> |
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.