File tree 21 files changed +17
-188
lines changed
21 files changed +17
-188
lines changed Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport
4
- ~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- A Python API to easily integrate Sphinx documentation into Web
7
- applications.
8
-
9
- :copyright: Copyright 2007-2018 by the Sphinx team, see README.
10
- :license: BSD, see LICENSE for details.
11
- """
1
+ """A Python API to easily integrate Sphinx documentation into Web applications."""
12
2
from os import path
13
3
14
4
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinx.builders.websupport
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- Builder for the web support package.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """Builder for the web support extension."""
11
2
12
3
from __future__ import annotations
13
4
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.core
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- Base Module for web support functions.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """Base Module for web support functions."""
11
2
12
3
from __future__ import annotations
13
4
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.errors
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- Contains Error classes for the web support package.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """Contains Error classes for the web support package."""
11
2
12
3
13
4
class DocumentNotFoundError (Exception ):
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.search
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- Server side search support for the web support package.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """Server side search support for the web support package."""
11
2
12
3
import re
13
4
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.search.nullsearch
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- The default search adapter, does nothing.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """The default search adapter, does nothing."""
11
2
12
3
from sphinxcontrib .websupport .search import BaseSearch
13
4
from sphinxcontrib .websupport .errors import NullSearchException
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.search.whooshsearch
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- Whoosh search adapter.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """Whoosh search adapter."""
11
2
12
3
from whoosh import index
13
4
from whoosh .fields import Schema , ID , TEXT
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.search.xapiansearch
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- Xapian search adapter.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """Xapian search adapter."""
11
2
12
3
import xapian
13
4
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.storage
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- Storage for the websupport package.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """Storage for the websupport package."""
11
2
12
3
13
4
class StorageBackend (object ):
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.storage.differ
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- A differ for creating an HTML representations of proposal diffs
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """A differ for creating an HTML representations of proposal diffs."""
11
2
12
3
import html
13
4
import re
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
1
"""
3
- sphinxcontrib.websupport.storage.sqlalchemy_db
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- SQLAlchemy table and mapper definitions used by the
7
- :class:`sphinxcontrib.websupport.storage.sqlalchemystorage.SQLAlchemyStorage`.
8
-
9
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
10
- :license: BSD, see LICENSE for details.
2
+ SQLAlchemy table and mapper definitions used by the
3
+ :py:class:`sphinxcontrib.websupport.storage.sqlalchemystorage.SQLAlchemyStorage`.
11
4
"""
12
5
13
6
from __future__ import annotations
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.storage.sqlalchemystorage
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- An SQLAlchemy storage backend.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """An SQLAlchemy storage backend."""
11
2
12
3
from datetime import datetime
13
4
Original file line number Diff line number Diff line change 1
- {#
2
- searchresults.html
3
- ~~~~~~~~~~~~~~~~~~
4
-
5
- Template for the body of the search results page.
6
-
7
- :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
8
- :license: BSD, see LICENSE for details.
9
- #}
1
+ {# Template for the body of the search results page. #}
10
2
< h1 id ="search-documentation "> {{ _('Search') }}</ h1 >
11
3
< p >
12
4
From here you can search these documents. Enter your search
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.utils
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
7
- :license: BSD, see LICENSE for details.
8
- """
9
1
from __future__ import annotations
10
2
11
3
from typing import TYPE_CHECKING
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- sphinxcontrib.websupport.writer
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- sphinxcontrib.websupport writer that adds comment-related annotations.
7
-
8
- :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """websupport writer that adds comment-related annotations."""
11
2
12
3
from sphinx .writers .html import HTMLTranslator
13
4
Original file line number Diff line number Diff line change 1
- """
2
- pytest config for sphinx extensions
3
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4
-
5
- :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
6
- :license: BSD, see LICENSE for details.
7
- """
8
-
9
1
from pathlib import Path
10
2
11
3
import pytest
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
-
3
1
import sys , os
4
2
5
3
sys .path .append (os .path .abspath ('.' ))
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
-
3
1
master_doc = 'markup'
4
2
source_suffix = '.txt'
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- test_searchadapters
4
- ~~~~~~~~~~~~~~~~~~~
5
-
6
- Test the Web Support Package search adapters.
7
-
8
- :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """Test the Web Support Package search adapters."""
11
2
12
3
import shutil
13
4
from io import StringIO
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- test_websupport
4
- ~~~~~~~~~~~~~~~
5
-
6
- Test the Web Support Package
7
-
8
- :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
9
- :license: BSD, see LICENSE for details.
10
- """
1
+ """Test the Web Support Package"""
11
2
12
3
from sphinxcontrib .websupport import WebSupport
13
4
from sphinxcontrib .websupport .errors import DocumentNotFoundError , \
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- """
3
- Sphinx test suite utilities
4
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
-
6
- :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
7
- :license: BSD, see LICENSE for details.
8
- """
9
-
10
1
import pytest
11
2
12
3
You can’t perform that action at this time.
0 commit comments