X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/611737f9cc186d3e6463ef774fdbda4f77055d4c..f471271831ffc7b0f71cc119edac33c267735d36:/docs/conf.py?ds=inline diff --git a/docs/conf.py b/docs/conf.py index 6edddba..9599afd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,6 +59,7 @@ def generate_sections_from_readme(): target_dir.mkdir(parents=True) output = None + target_dir = target_dir.relative_to(CURRENT_DIR) with open(str(readme), 'r', encoding='utf8') as f: for line in f: if line.startswith('## '): @@ -112,6 +113,7 @@ generate_sections_from_readme() extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.intersphinx', + 'sphinx.ext.napoleon', ] # Add any paths that contain templates here, relative to this directory. @@ -270,6 +272,8 @@ epub_exclude_files = ['search.html'] # -- Extension configuration ------------------------------------------------- +autodoc_member_order = 'bysource' + # -- Options for intersphinx extension --------------------------------------- # Example configuration for intersphinx: refer to the Python standard library.