Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs revamp #4141

Merged
merged 42 commits into from
Jun 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
091d920
Setup very basic skeleton for docs revamp
csadorf Apr 29, 2020
f4a3c29
Remove -W flag from docs build CI step
sphuber Apr 30, 2020
3672e06
Docs: flesh out skeleton of "How-to Guides"
sphuber Apr 30, 2020
535b335
Docs: add links to referenced GH issues (#4012)
CasperWA May 1, 2020
de2f8e3
Docs: add scaffolding for the "Topics" section (#4027)
sphuber May 1, 2020
a427743
Docs: scaffolding for the "Intro" section (#4011)
chrisjsewell May 1, 2020
a12575c
Docs: add scaffolding for the "Tutorials" section (#4025)
mbercx May 1, 2020
92551e7
Docs: add scaffolding for the "Reference" and "Internal Architecture"…
ltalirz May 4, 2020
8e9ae68
Docs: move auto-generated CLI docs and REST API reference
ltalirz May 4, 2020
7062bc1
Docs: add the "Topics - Command line interface" section (#4044)
sphuber May 5, 2020
13e34fa
Docs: How to work with data - Importing data (#4045)
sphuber May 7, 2020
0560faf
Docs: add the "How to add support for custom data types" section (#4049)
sphuber May 8, 2020
fec8406
Docs: move in section "Topics - Processes" (#4048)
sphuber May 11, 2020
ff11ad8
Docs: move in section "Topics - Provenance" (#4058)
sphuber May 12, 2020
e530368
Remove sphinx_cheatsheet and visual_aids (#4069)
ramirezfranciscof May 14, 2020
1f2c48f
Docs: add "How to manage your installation - Managing profiles" (#4066)
sphuber May 15, 2020
14ee892
Docs: add "How to - Configuring your installation" (#4068)
sphuber May 15, 2020
2ea1f76
Docs: add "How to on plugins" (#4078)
ltalirz May 19, 2020
a589108
Move to CircleCI for CI Documentation builds (#4099)
chrisjsewell May 25, 2020
0c95468
Add the `sphinx-panels` and `sphinx-copybutton` plugins (#4107)
chrisjsewell May 25, 2020
48106ec
Docs: Move plugin system docs (#4108)
ltalirz May 25, 2020
eebde41
Docs: Adding How-to delete data (#4110)
giovannipizzi May 25, 2020
04bf65b
Docs: Add How-Tos to "Managing installation" (#4074)
giovannipizzi May 26, 2020
9e998d4
Docs: How to manage multiple users (#4109)
giovannipizzi May 26, 2020
704d49a
Docs: Add basic tutorial (#4070)
mbercx May 27, 2020
9942b14
Docs: add the "How To - Launching a predefined workflow" section (#4087)
mbercx May 27, 2020
b746398
Docs: add the "How To - Running external codes" section (#4114)
ramirezfranciscof May 27, 2020
a675946
Docs: add the "How To - Finding and querying for data" section (#4080)
mbercx May 28, 2020
281a694
Docs: Revamp Intro/Install (#4060)
chrisjsewell May 28, 2020
e06ebbf
Docs: How to organize data - Group path (#4126)
chrisjsewell May 28, 2020
bffaebd
Docs: add brief intro text to "About" page and link from lading page.…
csadorf May 28, 2020
8363d99
Docs: add "How To - Grouping nodes" section (#4113)
yakutovicha May 29, 2020
c8ccc9f
Docs: add a Frequently Asked Questions page (#3966)
sphuber May 29, 2020
0d6756d
Docs: add "How To - Writing workflows" section (#4112)
mbercx May 29, 2020
a35392d
Docs: add "How To - Interfacing external codes" section (#4093)
ramirezfranciscof May 29, 2020
bb71f83
Docs: Add advanced querying section to database topics (#4132)
mbercx May 29, 2020
6c093e4
DOCS: Adopt pydata-sphinx-theme (#4129)
chrisjsewell May 29, 2020
908e169
Docs: add "How To - Visualising graphs" section (#4138)
chrisjsewell May 29, 2020
39c8671
Docs: Move section about log-level to new troubleshooting page. (#4131)
csadorf May 29, 2020
f472dba
Docs: final touches (#4135)
sphuber May 29, 2020
8c25cfe
Convert all stubs of missing sections into todo items. (#4137)
csadorf May 29, 2020
8e69062
Docs: final changes before merging the revamp
csadorf May 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2
jobs:
docs:
docker:
# see: https://circleci.com/docs/2.0/circleci-images/#python
- image: circleci/python:3.7-stretch
steps:
# Get our data and merge with upstream
- run: sudo apt-get update
- checkout

- restore_cache:
keys:
- cache-pip

- run: |
pip install numpy==1.17.4
pip install --user .[docs,testing]

- save_cache:
key: cache-pip
paths:
- ~/.cache/pip

# Build the docs
- run:
name: Build docs to store
# nit-picky mode, turn warnings into errors,
# but do not stop the build on errors (so we can still inspect the doc artifacts)
command: |
sphinx-build -b html -n -W --keep-going -d docs/_build/doctrees docs/source docs/_build/html
- store_artifacts:
path: docs/_build/html/
destination: html

workflows:
version: 2
default:
jobs:
- docs
31 changes: 0 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,6 @@ on: [push, pull_request]

jobs:

docs:

runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Install system dependencies
# remove occasionally problematic repositories we don't use anyway
run: |
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
sudo apt update
sudo apt install texlive-base texlive-generic-recommended texlive-fonts-recommended texlive-latex-base texlive-latex-recommended texlive-latex-extra dvipng dvidvi

- name: Install python dependencies
run: |
pip install numpy==1.17.4
pip install -e .[docs,testing]

- name: Build documentation
env:
READTHEDOCS: 'True'
run:
SPHINXOPTS='-nW' make -C docs html

pre-commit:

runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ Small improvements of the documentation or minor bug fixes are always welcome.

Please see the [Contributor wiki](/~https://github.com/aiidateam/aiida-core/wiki) on how to get started.

## Frequently Asked Questions

If you are experiencing problems with your AiiDA installation, please refer to the [FAQ page of the documentation](https://aiida-core.readthedocs.io/en/latest/howto/faq.html).

## How to cite

If you use AiiDA in your research, please consider citing the AiiDA paper:
Expand Down
2 changes: 0 additions & 2 deletions aiida/tools/dbimporters/plugins/icsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class IcsdDbImporter(DbImporter):
"""
Importer for the Inorganic Crystal Structure Database, short ICSD, provided by
FIZ Karlsruhe. It allows to run queries and analyse all the results.
See the :ref:`DbImporter documentation and
tutorial page <ICSD_importer_guide>` for more information.

:param server: Server URL, the web page of the database. It is
required in order to have access to the full database.
Expand Down
8 changes: 4 additions & 4 deletions aiida/tools/visualization/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def add_incoming(self, node, link_types=(), annotate_links=None, return_pks=True
)

# incoming nodes are found traversing backwards
node_pk = node if isinstance(node, int) else node.pk
node_pk = self._load_node(node).pk
valid_link_types = self._default_link_types(link_types)
valid_link_types = self._convert_link_types(valid_link_types)
traversed_graph = traverse_graph(
Expand Down Expand Up @@ -570,7 +570,7 @@ def add_outgoing(self, node, link_types=(), annotate_links=None, return_pks=True
)

# outgoing nodes are found traversing forwards
node_pk = node if isinstance(node, int) else node.pk
node_pk = self._load_node(node).pk
valid_link_types = self._default_link_types(link_types)
valid_link_types = self._convert_link_types(valid_link_types)
traversed_graph = traverse_graph(
Expand Down Expand Up @@ -647,7 +647,7 @@ def recurse_descendants(

# Get graph traversal rules where the given link types and direction are all set to True,
# and all others are set to False
origin_pk = origin if isinstance(origin, int) else origin.pk
origin_pk = self._load_node(origin).pk
valid_link_types = self._default_link_types(link_types)
valid_link_types = self._convert_link_types(valid_link_types)
traversed_graph = traverse_graph(
Expand Down Expand Up @@ -742,7 +742,7 @@ def recurse_ancestors(

# Get graph traversal rules where the given link types and direction are all set to True,
# and all others are set to False
origin_pk = origin if isinstance(origin, int) else origin.pk
origin_pk = self._load_node(origin).pk
valid_link_types = self._default_link_types(link_types)
valid_link_types = self._convert_link_types(valid_link_types)
traversed_graph = traverse_graph(
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PAPER =
BUILDDIR = build

# Added for sphinx-apidoc
APIDOCDIR = source/apidoc
APIDOCDIR = source/reference/apidoc

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
Expand Down
5 changes: 3 additions & 2 deletions docs/requirements_for_rtd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ plumpy~=0.14.5
psutil~=5.6
psycopg2-binary>=2.8.3,~=2.8
pyblake2~=1.1; python_version < "3.6"
pydata-sphinx-theme~=0.3.0
pygments~=2.5
pymatgen>=2019.7.2
pymysql~=0.9.3
Expand All @@ -44,8 +45,8 @@ reentry~=1.3
seekpath>=1.9.3,~=1.9
simplejson~=3.16
spglib~=1.14
sphinx-rtd-theme~=0.4.3
sphinxcontrib-contentui~=0.2.4
sphinx-copybutton~=0.2.11
sphinx-panels~=0.4.0
sphinxcontrib-details-directive~=0.1.0
sphinx~=2.2
sqlalchemy-diff~=0.1.3
Expand Down
117 changes: 117 additions & 0 deletions docs/source/_static/aiida-custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/* Fix CSS of top bar link icons */
a.nav-link.nav-external i {
padding-left: 0.3em !important;
font-size: inherit !important;
vertical-align: inherit !important;
}
/* Current fix for /~https://github.com/pandas-dev/pydata-sphinx-theme/issues/193 */
dl.field-list {
display: grid;
grid-template-columns: fit-content(30%) minmax(0, 1fr);
}
/* For icon unicodes see https://fontawesome.com/v4.7.0/icons/ */
.title-icon-rocket .admonition-title:before {
margin-right:.5rem;
content: "\f135"
}
.title-icon-info-circle .admonition-title:before {
margin-right:.5rem;
content: "\f05a"
}
.title-icon-question-circle .admonition-title:before {
margin-right:.5rem;
content: "\f059"
}
.title-icon-download .admonition-title:before {
margin-right:.5rem;
content: "\f019"
}
.title-icon-external-link .admonition-title:before {
margin-right:.5rem;
content: "\f08e"
}
.title-icon-lightbulb .admonition-title:before {
margin-right:.5rem;
content: "\f0eb"
}
.title-icon-wrench .admonition-title:before {
margin-right:.5rem;
content: "\f0ad"
}
.title-icon-cog .admonition-title:before {
margin-right:.5rem;
content: "\f013"
}
.title-icon-cogs .admonition-title:before {
margin-right:.5rem;
content: "\f085"
}
.title-icon-code-fork .admonition-title:before {
margin-right:.5rem;
content: "\f126"
}
/* Semantic icon names */
.title-icon-launch-software .admonition-title:before {
margin-right:.5rem;
content: "\f135" /* rocket */
}
.title-icon-install-software .admonition-title:before {
margin-right:.5rem;
content: "\f019" /* download */
}
.title-icon-information .admonition-title:before {
margin-right:.5rem;
content: "\f05a" /* info-circle */
}
.title-icon-tip .admonition-title:before {
margin-right:.5rem;
content: "\f0eb" /* lightbulb */
}
.title-icon-important .admonition-title:before {
margin-right:.5rem;
content: "\f06a" /* exclamation-circle */
}
.title-icon-warning .admonition-title:before {
margin-right:.5rem;
content: "\f071" /* exclamation-triangle */
}
.title-icon-troubleshoot .admonition-title:before {
margin-right:.5rem;
content: "\f0ad" /* wrench */
}
.title-icon-read-more .admonition-title:before {
margin-right:.5rem;
content: "\f518" /* external-link */
}

.dropdown-group .dropdown .summary-title {
border-bottom: 0 !important;
font-weight:700 !important;
}
.dropdown-group .dropdown:not(:last-child) {
margin-bottom: 0 !important;
border-radius: 0 !important;
}
.dropdown-group .dropdown:first-child,
.dropdown-group .dropdown:first-child .summary-title {
border-radius: 1rem 1rem 0rem 0rem !important;
}
.dropdown-group .dropdown:last-child,
.dropdown-group .dropdown:last-child .summary-title {
border-radius: 0rem 0rem 1rem 1rem !important;
}

.dropdown-group .dropdown:last-child {
margin-bottom: 24px !important;
}

div.admonition :last-child {
margin-bottom: 0
}

div.highlight-bash div.highlight {
background-color: aliceblue;
}
div.highlight-console div.highlight {
background-color: aliceblue;
}
2 changes: 0 additions & 2 deletions docs/source/backup/backup-aiidadb-USERNAME

This file was deleted.

Loading