Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 1, 2025

  • Understand the existing addons documentation structure
  • Review the CustomScript addon feature implementation and usage
  • Create documentation for the CustomScript addon in dedicated docs/user/custom-script.rst file
  • Document the window.ReadTheDocsEventData flag for accessing addons data
  • Add information about contacting support to enable the feature
  • Include an example of how to use this feature
  • Build and verify the documentation renders correctly
  • Run code review on documentation changes
  • Run security scanning (no code changes detected)
  • Address PR feedback: add Custom Script to initial features list in addons.rst
  • Address PR feedback: update code comments for better clarity
  • Address PR feedback: move Custom Script documentation to separate file following addon documentation pattern
Original prompt

This section details on the original issue you should resolve

<issue_title>Addons: add documentation for CustomScript</issue_title>
<issue_description>We need to document this addon and put some examples on how to solve common issues with this feature.

<agent_instructions>We want to document this feature, even it's not exposed in the UI. Tell people to contact support if they want to make usage of this feature.

Explain the flag we expose in window object.

Mention an example of what this feature is useful for.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@ericholscher We actually aren't exposing this to users -- should we, and write docs for it? @humitos Yeah. I think it's fine to have small docs for this addon. It's not polished/perfect, but it's useful. We can add the other features mentioned in the description of the issue in the following iteration when more people are using it and requesting for upgrades.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: humitos <244656+humitos@users.noreply.github.com>
@read-the-docs-community
Copy link

read-the-docs-community bot commented Dec 1, 2025

Documentation build overview

📚 docs | 🛠️ Build #30623930 | 📁 Comparing 00cecf6 against latest (82b22b0)


🔍 Preview build

Show files changed (3 files in total): 📝 2 modified | ➕ 1 added | ➖ 0 deleted
File Status
addons.html 📝 modified
custom-script.html ➕ added
reference/git-integration.html 📝 modified

Co-authored-by: humitos <244656+humitos@users.noreply.github.com>
Copilot AI changed the title [WIP] Add documentation for CustomScript addon Docs: Add documentation for CustomScript addon Dec 1, 2025
Copilot AI requested a review from humitos December 1, 2025 11:18
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with small changes.

@ericholscher
Copy link
Member

@copilot Fix feedback

…de comments

Co-authored-by: ericholscher <25510+ericholscher@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 4, 2025

@copilot Fix feedback

Fixed all feedback in commit 2abf4e4.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • blog.readthedocs.com
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • dev.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.djangoproject.com
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.jupyter.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.poliastro.space
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.python.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • executablebooks.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • ipyleaflet.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • ipywidgets.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • jupyterbook.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • jupytext.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • myst-nb.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • myst-parser.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • nbsphinx.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • rst-to-myst.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • www.sphinx-doc.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • www.writethedocs.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@read-the-docs-community
Copy link

read-the-docs-community bot commented Dec 4, 2025

Documentation build overview

📚 dev | 🛠️ Build #30623929 | 📁 Comparing 00cecf6 against latest (82b22b0)


🔍 Preview build

Show files changed (25 files in total): 📝 1 modified | ➕ 24 added | ➖ 0 deleted
File Status
http-routingtable.html ➕ added
index.html 📝 modified
design/apiv3.html ➕ added
design/better-doc-urls-handling.html ➕ added
design/build-images.html ➕ added
design/embed-api.html ➕ added
design/file-tree-diff.html ➕ added
design/flyout-redesign.html ➕ added
design/future-builder.html ➕ added
design/in-doc-search-ui.html ➕ added
design/index.html ➕ added
design/new-notifications-system.html ➕ added
design/new-search-api.html ➕ added
design/new-sphinx-guides.html ➕ added
design/organizations.html ➕ added
design/pr-builder.html ➕ added
design/privacy-levels.html ➕ added
design/redirects.html ➕ added
design/refactor-remote-repository.html ➕ added
design/secure-api-access-from-builders.html ➕ added
design/sphinx-jquery.html ➕ added
design/system-packages.html ➕ added
design/telemetry.html ➕ added
design/theme-context.html ➕ added
design/yaml-file.html ➕ added

Copilot AI requested a review from ericholscher December 4, 2025 21:15
@humitos humitos marked this pull request as ready for review December 9, 2025 09:22
@humitos humitos requested a review from a team as a code owner December 9, 2025 09:22
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Co-authored-by: humitos <244656+humitos@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 9, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • blog.readthedocs.com
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • dev.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.djangoproject.com
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.jupyter.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.poliastro.space
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.python.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • docs.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • executablebooks.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • ipyleaflet.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • ipywidgets.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • jupyterbook.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • jupytext.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • myst-nb.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • myst-parser.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • nbsphinx.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • rst-to-myst.readthedocs.io
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • www.sphinx-doc.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)
  • www.writethedocs.org
    • Triggering command: /home/REDACTED/.local/bin/sphinx-build sphinx-build -b html -d _build/user/doctrees -T -j auto -W . _build/user/html (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from humitos December 9, 2025 09:31
@humitos humitos enabled auto-merge (squash) December 9, 2025 09:32
@humitos
Copy link
Member

humitos commented Dec 9, 2025

@ericholscher pinging you for a review here 👍🏼

Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple enough.

/server-side-search/index
/server-side-search/syntax
/flyout-menu
/custom-script
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go in another TOC -- maintaining I'd say.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I will move it there.

@humitos humitos merged commit 672ece5 into main Dec 9, 2025
11 checks passed
@humitos humitos deleted the copilot/add-customscript-documentation branch December 9, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Addons: add documentation for CustomScript

3 participants