Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compatibility with Read The Docs #405

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
#

import os
import sys
import typing as t
Expand Down Expand Up @@ -37,8 +37,7 @@
# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
Expand All @@ -58,18 +57,14 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []

# myst
# -- MyST-Parser ---------------------------------------------------

myst_heading_anchors = 4
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html?highlight=header-anchors#code-fences-using-colons
myst_enable_extensions = ['colon_fence']

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#

# These folders are copied to the documentation's HTML output
html_static_path = ['_static']

Expand All @@ -90,7 +85,7 @@
'source_directory': 'docs/source/',
}

# Favicons
# -- Favicons ---------------------------------------------------
favicons = [
{
'rel': 'icon',
Expand All @@ -117,16 +112,25 @@
},
]

# -- Read The docs ---------------------------------------------------

# OpenGraph
# Define the canonical URL if you are using a custom domain on Read the Docs
html_baseurl = os.environ.get('READTHEDOCS_CANONICAL_URL', '')

# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get('READTHEDOCS', '') == 'True':
if 'html_context' not in globals():
html_context = {}
html_context['READTHEDOCS'] = True

# -- OpenGraph ---------------------------------------------------
ogp_site_url = 'https://atproto.blue/'
# Social preview of GitHub Repo. I guess it's lifetime link until edit/delete action,
ogp_image = 'https://repository-images.githubusercontent.com/569485568/9d743322-10a2-4290-9a05-a88348cce2b6'
ogp_type = 'article'
ogp_enable_meta_description = True


# Pydantic models
# -- Pydantic models ---------------------------------------------------
autodoc_pydantic_model_undoc_members = True
autodoc_pydantic_model_show_json = False
autodoc_pydantic_model_show_config_summary = False
Expand All @@ -137,7 +141,6 @@
autodoc_pydantic_field_show_alias = False
autodoc_pydantic_settings_show_json = False


autosectionlabel_prefix_document = True


Expand Down
2 changes: 1 addition & 1 deletion docs/source/dm.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 💬 Direct Messages (Chats)
# Direct Messages (Chats)

Bluesky Direct Messages were launched on May 22, 2024. It began as a simple chat system for Bluesky users to communicate with one another. Currently, only text messages are supported.

Expand Down
7 changes: 3 additions & 4 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Documentation

readme
Examples <https://github.com/MarshalX/atproto/tree/main/examples>
⭐️ Star <https://github.com/MarshalX/atproto>

.. toctree::
:caption: SDK
Expand Down Expand Up @@ -43,7 +42,7 @@ Documentation

GitHub <https://github.com/MarshalX/atproto>
PyPI <https://pypi.org/project/atproto/>
🦁 Author <https://github.com/MarshalX>
AT Protocol Docs <https://atproto.com/docs>
IPLD Data Model <https://ipld.io/>
Author <https://github.com/MarshalX>
AT Protocol Docs <https://atproto.com/>
Bluesky Docs <https://docs.bsky.app/>
Discord Bluesky API <https://discord.gg/PCyVJXU9jN>
Loading
Loading