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

Add basic documentation #148

Merged
merged 1 commit into from
Dec 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.gif filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.svg filter=lfs diff=lfs merge=lfs -text
4 changes: 2 additions & 2 deletions .github/workflows/docs_pages_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:

- name: Prereqs
- name: Preparation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -21,7 +21,7 @@ jobs:
git clone "https://token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" .
shell: bash

- name: Execute script to build our documentation and update pages
- name: Build documentation and update Github Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down
Binary file modified NiBAx/resources/NiBAX Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,323 changes: 3 additions & 1,320 deletions NiBAx/resources/NiBAx Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NiBAx/resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified NiBAx/resources/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 0 additions & 53 deletions QtBrainChartGUI/core/gui/SearchableQComboBox.py

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# [NiBAx] The neuro-imaging brain aging chart

**This software is under development!**
| :construction: This software and documentation is under development! Check out up-to-date documentation in [cbica.github.io/NiBAx/](https://cbica.github.io/NiBAx/) :construction: |
|-----------------------------------------|


![](NiBAx/resources/workflow.gif)

Expand Down
Empty file added docs/_static/.gitignore
Empty file.
14 changes: 14 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends "!layout.html" %}
{% block footer %} {{ super() }}

<style>
/* Sidebar header (and topbar for mobile) */
.wy-side-nav-search, .wy-nav-top {
background: #95b1c2;
}
/* Sidebar */
.wy-nav-side {
background: #363745;
}
</style>
{% endblock %}
18 changes: 14 additions & 4 deletions docs/buildDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ set -x
###################

apt-get update
apt-get -y install git rsync python3-sphinx python3-sphinx-rtd-theme python3-stemmer python3-git python3-pip python3-virtualenv python3-setuptools

python3 -m pip install --upgrade rinohtype pygments
apt-get -y install git git-lfs rsync python3-stemmer python3-git python3-pip \
python3-virtualenv python3-setuptools zlib1g zlib1g-dev libjpeg-dev \
python3-pandas python3-matplotlib python3-seaborn

python3 -m pip install --upgrade docutils==0.16
python3 -m pip install --upgrade rinohtype Pygments myst_parser sphinx_tabs \
sphinx_rtd_theme sphinx rst2pdf sphinx-autoapi \
sphinx_gallery

git lfs install

#####################
# DECLARE VARIABLES #
Expand Down Expand Up @@ -132,14 +139,17 @@ If you are looking for documentation, please see:

* https://cbica.github.io/NiBAx/
EOF

# copy the resulting html pages built from sphinx above to our new git repo
git add .

# commit all the new files
msg="Updating Docs for commit ${GITHUB_SHA} made on `date -d"@${SOURCE_DATE_EPOCH}" --iso-8601=seconds` from ${GITHUB_REF} by ${GITHUB_ACTOR}"
git commit -am "${msg}"

# convert LFS objects to binary files
git lfs migrate export --yes --include "*.png,*.gif" --include-ref HEAD

# overwrite the contents of the gh-pages branch on our github.com repo
git push deploy gh-pages --force

Expand Down
23 changes: 18 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

# -- Project information -----------------------------------------------------

project = 'NiBAx'
project = 'NiBAχ'
copyright = '2022, CBICA, University of Pennsylvania'
author = 'Ashish Singh'

# The short X.Y version
version = ''
# The full version, including alpha/beta/rc tags
release = '1.0.0'
release = '0.1'


# -- General configuration ---------------------------------------------------
Expand All @@ -39,19 +39,27 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'myst_parser',
'sphinx_rtd_theme',
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinx_tabs.tabs',
'rst2pdf.pdfbuilder',
'autoapi.extension',
'sphinx_gallery.gen_gallery',
]

autoapi_dirs = ['../NiBAx']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
source_suffix = ['.rst', '.md']
source_suffix = {'.rst': 'restructuredtext',
'.txt': 'markdown'}
#source_suffix = '.rst'

# The master toctree document.
Expand Down Expand Up @@ -85,13 +93,18 @@
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {
'logo_only': True,
'display_version': True,
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_logo = "contents/images/NiBAx.png"

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
Expand Down Expand Up @@ -155,7 +168,7 @@
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'NiBAx', 'NiBAx Documentation',
author, 'NiBAx', 'One line description of project.',
author, 'Ahmed Abdulkadir', 'The neuro-imaging brain aging chart',
'Miscellaneous'),
]

Expand Down
Loading