Skip to content

Commit 12e52af

Browse files
committed
Initial commit
0 parents  commit 12e52af

17 files changed

Lines changed: 312 additions & 0 deletions

File tree

.github/workflows/sphinx.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Sphinx: Render docs"
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
defaults:
11+
run:
12+
shell: bash -el {0}
13+
# GitHub configures `bash` to ignore ~/.bashrc and ~/.profile, but
14+
# we can avoid this by using `bash -el {0}`
15+
# see https://github.com/marketplace/actions/setup-miniconda and https://github.com/orgs/community/discussions/25061
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install Miniforge with dependencies
19+
uses: conda-incubator/setup-miniconda@v3
20+
with:
21+
environment-file: environment.yml
22+
miniforge-version: latest
23+
use-mamba: true
24+
auto-activate-base: false
25+
- name: Build HTML
26+
run: make html
27+
- name: Upload artifacts
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: html-docs
31+
path: build/html/
32+
- name: Deploy
33+
uses: peaceiris/actions-gh-pages@v3
34+
if: github.ref == 'refs/heads/master'
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: build/html

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
build
2+
**/__pycache__
3+
4+
# temporary files
5+
6+
*.*~
7+
*~
8+
*.tmp
9+
*.swp

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Epoch documentation
2+
3+
4+
5+
## Building
6+
### Installation of dependencies
7+
8+
First, please have Conda installed on your computer. If it's not installed, please install [Miniforge3](https://conda-forge.org/miniforge/), which includes Conda and a conda-forge based Python environment. You can install Miniforge3 using the following command:
9+
10+
```bash
11+
wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
12+
bash Miniforge3-$(uname)-$(uname -m).sh
13+
rm Miniforge3-$(uname)-$(uname -m).sh
14+
```
15+
16+
Close and reopen your shell, and run:
17+
18+
```bash
19+
# Prevent Conda from polluting your environment when you're not working on Conda-managed projects.
20+
conda config --set auto_activate_base false
21+
```
22+
23+
Now, you can use Conda to install the dependencies.
24+
25+
```bash
26+
mamba env create -f environment.yml
27+
mamba activate NewDocumentation
28+
```
29+
30+
If you modify `environment.yml`, please run
31+
32+
```bash
33+
mamba env update -f environment.yml
34+
```
35+
36+
Occassionally, you should update all the packages to the latest versions:
37+
38+
```bash
39+
mamba activate NewDocumentation
40+
mamba update --all
41+
```
42+
43+
### Building
44+
45+
To make the docs in HTML format, run:
46+
47+
```bash
48+
make html
49+
```
50+
51+
Then you can read it in your browser:
52+
53+
```bash
54+
firefox build/html/index.html
55+
```
56+
57+
There are other output formats, but they might not work.

environment.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: NewDocumentation
2+
channels:
3+
- conda-forge
4+
- nodefaults
5+
dependencies:
6+
- python
7+
- pip
8+
- sphinx>=8.0
9+
- sphinx-design
10+
- sphinx-copybutton
11+
- furo
12+
- pydata-sphinx-theme
13+
- myst-parser
14+
- pip:
15+
- sphinxcontrib-domaintools

make.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
%SPHINXBUILD% >NUL 2>NUL
14+
if errorlevel 9009 (
15+
echo.
16+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17+
echo.installed, then set the SPHINXBUILD environment variable to point
18+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
19+
echo.may add the Sphinx directory to PATH.
20+
echo.
21+
echo.If you don't have Sphinx installed, grab it from
22+
echo.https://www.sphinx-doc.org/
23+
exit /b 1
24+
)
25+
26+
if "%1" == "" goto help
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

source/Architecture/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Architecture
2+

source/Operations/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Operations manual
2+

source/User/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# User manual
2+
3+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Cloud operation logs
2+

0 commit comments

Comments
 (0)