Update docs for mkdocs & readthedocs optimization #113
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces several improvements to the documentation and configuration for the City2Graph project. The main changes include enhanced SEO and social sharing metadata, integration with ReadTheDocs versioning, and improved handling of MkDocs and YAML syntax in the pre-commit configuration. Additionally, API documentation pages now include relevant keywords for better searchability.
Documentation and SEO Enhancements:
docs/overrides/main.html.docs/api/data.md,docs/api/graph.md, etc.) to includekeywordsmetadata for better discoverability and search engine optimization. [1] [2] [3] [4] [5] [6] [7] [8]keywordsmetadata todocs/contributing.mdanddocs/installation.mdfor improved search relevance. [1] [2]ReadTheDocs and MkDocs Integration:
mkdocs.ymlto use an environment variable forsite_url, allowing dynamic canonical URLs for different ReadTheDocs versions.docs/javascripts/readthedocs.js) to enhance ReadTheDocs integration, including a version selector and improved search behavior.extra_javascriptsection ofmkdocs.yml.Pre-commit and YAML Configuration:
.pre-commit-config.yamlto excludemkdocs.ymlfrom certain YAML checks, accommodating MkDocs-specific syntax. [1] [2]Other Improvements:
socialplugin inmkdocs.ymlin favor of the new custom Open Graph meta tags, improving compatibility and reducing dependencies.Related Issues
NA
Checklist