Skip to content

Commit df7882e

Browse files
author
Sam Borms
authored
Merge pull request #112 from PythonPredictions/sphinx-docs
update docs params & HTML generation
2 parents d3f64fb + af6000f commit df7882e

7 files changed

Lines changed: 17 additions & 258 deletions

File tree

README.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
.. image:: https://github.com/PythonPredictions/cobra/raw/master/material/logo.png
3-
:width: 350
4-
3+
:width: 700
54

65
.. image:: https://img.shields.io/pypi/v/pythonpredictions-cobra.svg
76
:target: https://pypi.org/project/pythonpredictions-cobra/
@@ -54,7 +53,7 @@ The easiest way to install Cobra is using ``pip``: ::
5453

5554

5655
Documentation and extra material
57-
=====================
56+
================================
5857

5958
- A `blog post <https://www.pythonpredictions.com/news/the-little-trick-we-apply-to-obtain-explainability-by-design/>`_ on the overall methodology.
6059

@@ -64,14 +63,14 @@ Documentation and extra material
6463

6564
- A step-by-step `tutorial <https://pythonpredictions.github.io/cobra/tutorials/tutorial_Cobra_logistic_regression.ipynb>`_ for **logistic regression**.
6665

67-
- A step-by-step `tutorial <https://pythonpredictions.github.io/cobra/tutorials/tutorial_Cobra_linear_regression.ipynb>`_ for **linear regression**.
66+
- A step-by-step `tutorial <https://pythonpredictions.github.io/cobra/tutorials/tutorial_Cobra_linear_regression.ipynb>`__ for **linear regression**.
6867

6968
- Check out the Data Science Leuven Meetup `talk <https://www.youtube.com/watch?v=w7ceZZqMEaA&feature=youtu.be>`_ by one of the core developers (second presentation). His `slides <https://github.com/PythonPredictions/Cobra-DS-meetup-Leuven/blob/main/DS_Leuven_meetup_20210209_cobra.pdf>`_ and `related material <https://github.com/PythonPredictions/Cobra-DS-meetup-Leuven>`_ are also available.
7069

7170
Contributing to Cobra
7271
=====================
7372

7473
We'd love you to contribute to the development of Cobra! There are many ways in which you can contribute, the most common of which is to contribute to the source code or documentation of the project. However, there are many other ways you can contribute (report issues, improve code coverage by adding unit tests, ...).
75-
We use GitHub issue to track all bugs and feature requests. Feel free to open an issue in case you found a bug or in case you wish to see a new feature added.
74+
We use GitHub issues to track all bugs and feature requests. Feel free to open an issue in case you found a bug or in case you wish to see a new feature added.
7675

77-
For more details, check our `wiki <https://github.com/PythonPredictions/cobra/wiki/Contributing-guidelines-&-workflows>`_.
76+
For more details, check out our `wiki <https://github.com/PythonPredictions/cobra/wiki/Contributing-guidelines-&-workflows>`_.

docs/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Minimal makefile for Sphinx documentation
2-
#
32

43
# You can set these variables from the command line, and also
54
# from the environment for the first two.

docs/source/conf.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Configuration file for the Sphinx documentation builder.
2-
#
2+
33
# This file only contains a selection of the most common options. For a full
44
# list see the documentation:
55
# https://www.sphinx-doc.org/en/master/usage/configuration.html
@@ -14,16 +14,14 @@
1414
import sys
1515
sys.path.insert(0, os.path.abspath('../../'))
1616

17-
1817
# -- Project information -----------------------------------------------------
1918

20-
project = 'cobra'
21-
copyright = '2020, Python Predictions'
19+
project = 'Cobra'
20+
copyright = '2021, Python Predictions'
2221
author = 'Python Predictions'
2322

2423
# The full version, including alpha/beta/rc tags
25-
release = '1.0.0'
26-
24+
release = '1.1.0'
2725

2826
# -- General configuration ---------------------------------------------------
2927

@@ -72,12 +70,12 @@
7270

7371
# The theme to use for HTML and HTML Help pages. See the documentation for
7472
# a list of builtin themes.
75-
#
73+
7674
html_theme = 'sphinx_rtd_theme'
7775

7876
# Add any paths that contain custom static files (such as style sheets) here,
7977
# relative to this directory. They are copied after the builtin static files,
8078
# so a file named "default.css" will overwrite the builtin "default.css".
81-
html_static_path = ['_static']
79+
# html_static_path = ['_static'] # uncomment if exists, currently doesn't
8280

83-
html_favicon = 'images/cobra_icon.png'
81+
html_favicon = 'images/cobra-icon2.png'

docs/source/images/cobra_Icon.png

-30.9 KB
Binary file not shown.

docs/source/index.rst

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
1-
.. cobra documentation master file, created by
1+
.. Cobra documentation master file, created by
22
sphinx-quickstart on Thu Dec 3 11:55:07 2020.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
66
*********************************
7-
Welcome to cobra's documentation!
7+
Welcome to Cobra's documentation!
88
*********************************
99

10-
.. include:: C:/Users/hendrik.dewinter/PycharmProjects/cobra/README.rst
11-
12-
.. toctree::
13-
:maxdepth: 2
14-
:hidden:
15-
:caption: Contents:
10+
.. include:: ../../README.rst
1611

1712
.. toctree::
1813
:maxdepth: 4
1914
:hidden:
2015
:caption: API Reference
2116

22-
C:/Users/hendrik.dewinter/PycharmProjects/cobra/docs/source/docstring/modules.rst
23-
24-
25-
Indices and tables
26-
==================
27-
28-
* :ref:`genindex`
29-
* :ref:`modindex`
30-
* :ref:`search`
17+
docstring/modules

docs/source/tutorial_outdated.rst

Lines changed: 0 additions & 224 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
name="pythonpredictions-cobra",
1515
version=__version__,
1616
description=("A Python package to build predictive linear and logistic regression "
17-
"models focused on performance and interpretation"),
17+
"models focused on performance and interpretation."),
1818
long_description=README,
1919
long_description_content_type="text/x-rst",
2020
packages=find_packages(include=["cobra", "cobra.*"]),

0 commit comments

Comments
 (0)