Skip to content

Commit

Permalink
docs: use myst-parser for markdown (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Aug 11, 2024
1 parent 9f9a7f5 commit b575469
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
furo==2024.8.6
m2r2==0.3.3.post2
myst-parser==4.0.0
rstcheck[sphinx]==6.2.4
rstfmt==0.0.14
Sphinx==7.2.6
Expand Down
9 changes: 6 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# -- Project information -----------------------------------------------------
project = 'LizardByte'
copyright = f'{datetime.now ().year}, {project}'
project_copyright = f'{datetime.now ().year}, {project}'
author = 'ReenigneArcher'

# The full version, including alpha/beta/rc tags
Expand All @@ -37,7 +37,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'm2r2', # enable markdown files
'myst_parser', # enable markdown files
'sphinx.ext.autosectionlabel',
'sphinx.ext.todo', # enable to-do sections
'sphinx.ext.viewcode', # add links to view source code
Expand All @@ -53,7 +53,10 @@
exclude_patterns = ['toc.rst']

# Extensions to include.
source_suffix = ['.rst', '.md']
source_suffix = {
'.rst': 'restructuredtext',
'.md': 'markdown',
}


# -- Options for HTML output -------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion docs/source/developers/code_of_conduct.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.. mdinclude:: ../../../CODE_OF_CONDUCT.md
.. include:: ../../../CODE_OF_CONDUCT.md
:parser: myst_parser.docutils_

0 comments on commit b575469

Please sign in to comment.