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

docs: Include Sphinx JS for Python SDK docs #163

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

pniedzielski
Copy link
Collaborator

When running a search within the Python SDK docs, the synopsis for each match is a file not found error message. The root cause of this is that the Sphinx Javascript file _static/_sphinx_javascript_frameworks_compat.js does not seem to be copied by GitHub Pages’ Jekyll processor. This is likely due to the fact that its filename begins with an underscore, which causes Jekyll to treat it as a special file, not to be copied literally. We saw this problem generally before the fix in commit 37bf5a9, as the _static directory was not being included.

This patch adds an explicit include for the Sphinx Javascript file, teaching GitHub Pages to include it in its output verbatim.

Issue number of the reported bug or feature request: #162

See also bloomberg/blazingmq-sdk-python#11

When running a search within the Python SDK docs, the synopsis for each match
is a file not found error message.  The root cause of this is that the Sphinx
Javascript file `_static/_sphinx_javascript_frameworks_compat.js` does not seem
to be copied by GitHub Pages’ Jekyll processor.  This is likely due to the fact
that its filename begins with an underscore, which causes Jekyll to treat it as
a special file, not to be copied literally.  We saw this problem generally
before the fix in commit 37bf5a9, as the `_static` directory was not being
included.

This patch adds an explicit include for the Sphinx Javascript file, teaching
GitHub Pages to include it in its output verbatim.

Signed-off-by: Patrick M. Niedzielski <[email protected]>
@pniedzielski pniedzielski added documentation Improvements or additions to documentation A-Docs Area: Documentation labels Dec 6, 2023
@pniedzielski pniedzielski requested a review from a team as a code owner December 6, 2023 17:45
@pniedzielski
Copy link
Collaborator Author

Unfortunately, as with #150 and #151, I think the only way to test this PR is to merge it and see whether GitHub's Jekyll runner behaves as documented.

Copy link
Collaborator

@kaikulimu kaikulimu left a comment

Choose a reason for hiding this comment

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

Let's test this out

@pniedzielski pniedzielski merged commit a316f98 into bloomberg:main Dec 6, 2023
9 checks passed
@pniedzielski pniedzielski deleted the python-apidocs-js-404 branch March 12, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Docs Area: Documentation documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants