1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-07-24 23:17:43 +00:00

Update readthedocs version (might break stuff)

This commit is contained in:
RGBCube 2022-06-21 19:03:25 +03:00 committed by Automated Linter
parent 0d10386c39
commit 17b813532d
14 changed files with 67 additions and 70 deletions

View file

@ -1,7 +1,7 @@
import logging
import sys
import os
import re
import sys
# 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
@ -85,7 +85,7 @@ with open('../github/__init__.py') as f:
release = version
# This assumes a tag is available for final releases
branch = 'master' if version.endswith('a') else 'v' + version
branch = 'master' if version.endswith('a') else f"v{version}"
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View file

@ -1,8 +1,9 @@
from __future__ import annotations
import importlib
import inspect
import re
from typing import Dict, List, NamedTuple, Optional, Tuple, Sequence, TYPE_CHECKING
from typing import TYPE_CHECKING, Dict, List, NamedTuple, Optional, Sequence, Tuple
from docutils import nodes
from sphinx import addnodes

View file

@ -42,7 +42,7 @@ class DPYStandaloneHTMLBuilder(StandaloneHTMLBuilder):
self.handle_page('genindex-all', genindexcontext, 'genindex.html')
for (key, entries), count in zip(genindex, indexcounts):
ctx = {'key': key, 'entries': entries, 'count': count, 'genindexentries': genindex}
self.handle_page('genindex-' + key, ctx, 'genindex-single.html')
self.handle_page(f"genindex-{key}", ctx, 'genindex-single.html')
else:
self.handle_page('genindex', genindexcontext, 'genindex.html')

View file

@ -1,7 +1,7 @@
from docutils.parsers.rst import Directive
from docutils.parsers.rst import states, directives # type: ignore
from docutils.parsers.rst.roles import set_classes
from docutils import nodes
from docutils.parsers.rst import directives # type: ignore
from docutils.parsers.rst import Directive
from docutils.parsers.rst.roles import set_classes
class details(nodes.General, nodes.Element):

View file

@ -1,8 +1,5 @@
from docutils.parsers.rst import Directive
from docutils.parsers.rst import states, directives # type: ignore
from docutils.parsers.rst.roles import set_classes
from docutils import nodes
from sphinx.locale import _
from docutils.parsers.rst import Directive
class exception_hierarchy(nodes.General, nodes.Element):

View file

@ -4,11 +4,10 @@
from typing import Any, Dict, List, Tuple
import sphinx
from docutils import nodes, utils
from docutils.nodes import Node, system_message
from docutils.parsers.rst.states import Inliner
import sphinx
from sphinx.application import Sphinx
from sphinx.util.nodes import split_explicit_title
from sphinx.util.typing import RoleFunction