github-docs-index
stable
  • Example Configuration
  • Example Output
  • API
    • github_docs_index package
      • Submodules
        • github_docs_index.config module
        • github_docs_index.github_instance module
        • github_docs_index.index_document module
        • github_docs_index.index_generator module
        • github_docs_index.index_link module
        • github_docs_index.quick_link module
        • github_docs_index.repo_link module
        • github_docs_index.runner module
        • github_docs_index.version module
  • Changelog
github-docs-index
  • Docs »
  • github_docs_index »
  • github_docs_index package »
  • github_docs_index.index_link module
  • Edit on GitHub

github_docs_index.index_link module¶

class github_docs_index.index_link.IndexLink[source]¶

Bases: object

Base class to represent documents that will be linked in the index page.

rst_line¶

Return the rsStructuredText link/line for this link; this will be used as an item in the document list. This should be a hyperlink to the document URL with the appropriate title, optionally followed by a hyphen and the (~1 sentence) description if available. i.e.:

title

or:

title - Description goes here.
Returns:rst link to document, with optional description
Return type:str
sort_datetime¶

Return a datetime.datetime instance to be used when sorting documents by creation/update time.

Returns:creation/modification time of the document for chronological sorting
Return type:datetime.datetime
sort_name¶

Return a lower-case string to be used as the document title/name when sorting documents alphabetically.

Returns:document name/title used for sorting documents alphabetically. Should be lower-case.
Return type:str
Next Previous

© Copyright 2018 Jason Antman. Revision b409e612.

Built with Sphinx using a theme provided by Read the Docs.