Skip to content

Commit

Permalink
Update documentation using Sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
titipata committed Jan 22, 2020
1 parent accebd9 commit 5364cf5
Show file tree
Hide file tree
Showing 21 changed files with 252 additions and 7,816 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Created by https://www.gitignore.io

# Sphinx documentation
docs/_build/

### OSX ###
.DS_Store
.AppleDouble
Expand Down
5 changes: 0 additions & 5 deletions docs/404.html

This file was deleted.

20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
10 changes: 0 additions & 10 deletions docs/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/_config.yml

This file was deleted.

Empty file removed docs/_includes/head.html
Empty file.
1 change: 0 additions & 1 deletion docs/_includes/scripts.html

This file was deleted.

21 changes: 0 additions & 21 deletions docs/_layouts/default.html

This file was deleted.

4 changes: 4 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
API Documentation
=================

.. currentmodule:: pubmed_parser
68 changes: 68 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import sys
import os
import sphinx
import pubmed_parser as pp
import sphinx_gallery


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

project = 'Pubmed Parser'
copyright = '2020, Titipat Achakulvisut'
author = 'Titipat Achakulvisut'


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.autosummary',
'sphinx.ext.doctest'
]

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

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'

# 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']


sphinx_gallery_conf = {
'examples_dirs': '../examples',
'gallery_dirs': 'auto_examples'
}
20 changes: 0 additions & 20 deletions docs/convert_readme.py

This file was deleted.

Loading

0 comments on commit 5364cf5

Please sign in to comment.