mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Improve sphinx.project docstrings
This commit is contained in:
parent
d626c93677
commit
29b20ff742
@ -22,7 +22,7 @@ EXCLUDE_PATHS = ['**/_sources', '.#*', '**/.#*', '*.lproj/**']
|
||||
|
||||
|
||||
class Project:
|
||||
"""A project is source code set of Sphinx document."""
|
||||
"""A project is the source code set of the Sphinx document(s)."""
|
||||
|
||||
def __init__(self, srcdir: str, source_suffix: Dict[str, str]) -> None:
|
||||
#: Source directory.
|
||||
@ -61,7 +61,7 @@ class Project:
|
||||
return self.docnames
|
||||
|
||||
def path2doc(self, filename: str) -> Optional[str]:
|
||||
"""Return the docname for the filename if the file is document.
|
||||
"""Return the docname for the filename if the file is a document.
|
||||
|
||||
*filename* should be absolute or relative to the source directory.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user