Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Chris Proof of Principle #3

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
update
  • Loading branch information
chrisjsewell committed Oct 14, 2020
commit 9ba2572464e300f6af418a31272e1a4963dde393
2 changes: 2 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: 2

conda:
environment: environment.yml
python:
version: 3
install:
24 changes: 22 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -18,13 +18,13 @@

myst_admonition_enable = True
myst_html_img_enable = True
jupyter_execute_notebooks = "off"
jupyter_execute_notebooks = "auto"

blog_path = "stories/index"
blog_title = "Stories"
blog_post_pattern = ["stories/*.md", "stories/*.ipynb"]
post_redirect_refresh = 1
post_auto_excerpt = 2
post_auto_excerpt = 3
post_auto_image = 1
fontawesome_included = True
html_sidebars = {
@@ -72,3 +72,23 @@
"use_edit_page_button": True,
}
panels_add_bootstrap_css = False


def start_aiida(*args):
from reentry import manager
from aiida.manage.tests import _GLOBAL_TEST_MANAGER, BACKEND_DJANGO
from aiida.common.utils import Capturing
manager.scan()
with Capturing(): # capture output of AiiDA DB setup
_GLOBAL_TEST_MANAGER.use_temporary_profile(backend=BACKEND_DJANGO, pgtest=None)
from aiida.manage.configuration import settings
import os
os.environ["AIIDA_PATH"] = settings.AIIDA_CONFIG_FOLDER

def end_aiida(*args):
from aiida.manage.tests import _GLOBAL_TEST_MANAGER
_GLOBAL_TEST_MANAGER.destroy_all()

def setup(app):
app.connect('builder-inited', start_aiida)
app.connect('build-finished', end_aiida)
2 changes: 1 addition & 1 deletion docs/stories/aiida-crystal17.ipynb
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
"input interface , to create the input ``.d12`` and ``.gui`` files,\n",
"from a set of AiiDA {py:class}`~aiida.orm.nodes.data.Data` nodes.\n",
"\n",
"![icon](../images/aiida-crystal17.jpg) \n"
"![icon](../images/aiida-crystal17.jpg)\n"
]
},
{
307 changes: 0 additions & 307 deletions docs/stories/visualising_graphs.ipynb

This file was deleted.

Loading