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

Commit

Permalink
Code cleanup, added static const to aid readability
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed May 5, 2018
1 parent 7731181 commit c9a6c4a
Show file tree
Hide file tree
Showing 32 changed files with 8,758 additions and 5,803 deletions.
77 changes: 40 additions & 37 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# -*- coding: utf-8 -*-
#
# cppmat documentation build configuration file, created by
# sphinx-quickstart on Tue Feb 28 17:10:58 2017.
# Configuration file for the Sphinx documentation builder.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config

# -- 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
Expand All @@ -21,7 +17,19 @@
# sys.path.insert(0, os.path.abspath('.'))


# -- General configuration ------------------------------------------------
# -- Project information -----------------------------------------------------

project = 'cppmat'
copyright = '2017, Tom de Geus'
author = 'Tom de Geus'

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


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

# If your documentation needs a minimal Sphinx version, state it here.
#
Expand All @@ -30,7 +38,9 @@
# 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.imgmath']
extensions = [
'sphinx.ext.imgmath',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand All @@ -44,20 +54,6 @@
# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'cppmat'
copyright = u'2017, Tom de Geus'
author = u'Tom de Geus'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u''
# The full version, including alpha/beta/rc tags.
release = u''

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
Expand All @@ -67,22 +63,19 @@

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

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False


# -- Options for HTML output ----------------------------------------------
# -- 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 = 'default'
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand All @@ -95,14 +88,24 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# The default sidebars (for documents that don't match any pattern) are
# defined by theme itself. Builtin themes are using these templates by
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
# 'searchbox.html']``.
#
# html_sidebars = {}

# -- Options for HTMLHelp output ------------------------------------------

# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'cppmatdoc'


# -- Options for LaTeX output ---------------------------------------------
# -- Options for LaTeX output ------------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
Expand Down Expand Up @@ -131,7 +134,7 @@
]


# -- Options for manual page output ---------------------------------------
# -- Options for manual page output ------------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
Expand All @@ -141,7 +144,7 @@
]


# -- Options for Texinfo output -------------------------------------------
# -- Options for Texinfo output ----------------------------------------------

# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
Expand All @@ -153,4 +156,4 @@
]



# -- Extension configuration -------------------------------------------------
2 changes: 1 addition & 1 deletion src/cppmat/cppmat.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#define CPPMAT_WORLD_VERSION 0
#define CPPMAT_MAJOR_VERSION 6
#define CPPMAT_MINOR_VERSION 2
#define CPPMAT_MINOR_VERSION 3

#define CPPMAT_VERSION_AT_LEAST(x,y,z) \
(CPPMAT_WORLD_VERSION>x || (CPPMAT_WORLD_VERSION>=x && \
Expand Down

0 comments on commit c9a6c4a

Please sign in to comment.