Skip to content

Commit

Permalink
New implementation with documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bastonero committed May 24, 2023
1 parent 2cb95d5 commit 29a937e
Show file tree
Hide file tree
Showing 113 changed files with 9,966 additions and 2,497 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,7 @@ ENV/
.DS_Store
.idea
submit_test/
docker-compose.yml
_aiida_*
# Autogenerated API docs
docs/source/reference/api/aiida_vibroscopy
docs/source/reference/cli
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ repos:
name: yapf
types: [python]
args: ['-i']
exclude: &exclude_files >
(?x)^(
docs/.*|
tests/.*(?<!\.py)$
)$
additional_dependencies: ['toml']

- repo: local
Expand All @@ -45,9 +50,5 @@ repos:
rev: '6.1.1'
hooks:
- id: pydocstyle
exclude: >
(?x)^(
docs/.*|
tests/.*(?<!\.py)$
)$
exclude: *exclude_files
additional_dependencies: ['toml']
14 changes: 10 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: mambaforge-4.10

conda:
environment: environment.yml

python:
version: 3.8
install:
- method: pip
path: .
extra_requirements:
- docs

# Let the build fail if there are any warnings
sphinx:
builder: html
fail_on_warning: true
configuration: docs/source/conf.py
fail_on_warning: false
7 changes: 4 additions & 3 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
AIIDAWORKDIR = source/local_module/_aiida_*

# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
Expand All @@ -24,10 +25,10 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
customdefault:
$(SPHINXBUILD) -b html -nW --keep-going $(ALLSPHINXOPTS) $(BUILDDIR)/html

all: html
all: html view

clean:
rm -rf $(BUILDDIR)
rm -rf $(BUILDDIR); rm -rf $(AIIDAWORKDIR)

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Expand All @@ -36,4 +37,4 @@ html:


view:
xdg-open $(BUILDDIR)/html/index.html
open $(BUILDDIR)/html/index.html
2 changes: 0 additions & 2 deletions docs/requirements_for_rtd.txt

This file was deleted.

382 changes: 382 additions & 0 deletions docs/source/1_phonon.ipynb

Large diffs are not rendered by default.

602 changes: 602 additions & 0 deletions docs/source/2_dielectric.ipynb

Large diffs are not rendered by default.

655 changes: 655 additions & 0 deletions docs/source/3_iraman.ipynb

Large diffs are not rendered by default.

612 changes: 612 additions & 0 deletions docs/source/4_polar.ipynb

Large diffs are not rendered by default.

779 changes: 779 additions & 0 deletions docs/source/5_iraman_functionals.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 29a937e

Please sign in to comment.