Skip to content

Commit

Permalink
docs: fix generation using markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewiscowles1986 committed Mar 31, 2024
1 parent 37071fd commit 666dbba
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
9 changes: 6 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@

# 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.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', 'myst_parser']

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

# The suffix of source filenames.
source_suffix = '.rst'
source_suffix = {
'.rst': 'restructuredtext',
'.md': 'markdown',
}

# The encoding of source files.
#source_encoding = 'utf-8-sig'
Expand All @@ -44,7 +47,7 @@

# General information about the project.
project = u'Python Call Graph'
copyright = u'2007-2013 Gerald Kaszuba, et al.'
copyright = u'2007-2024 Gerald Kaszuba, et al.'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
5 changes: 3 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.. include:: ../README.md

Documentation Index
===================

.. include:: ../README.md
:parser: markdown

.. toctree::
:maxdepth: 3

Expand Down
2 changes: 1 addition & 1 deletion man/pycallgraph.1
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ pycallgraph was written by Gerald Kaszuba <[email protected]>.
This manual page was originally written by Jan Alonzo <[email protected]>, for the Debian GNU/Linux system.

.SH COPYRIGHT
2007-2013 Gerald Kaszuba, et al.
2007-2024 Gerald Kaszuba, et al.
.\" Generated by docutils manpage writer.
.
1 change: 1 addition & 0 deletions requirements/documentation.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sphinx==7.2.6
myst-parser==2.0.0

0 comments on commit 666dbba

Please sign in to comment.