GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Updated copyright link to license in repo by jablonskidev · Pull Request #67 · python/python-docs-theme

Conversation

@jablonskidev

@jablonskidev jablonskidev commented Mar 7, 2021

Copy link
Copy Markdown
Contributor

This should fix issues #652 and #653 in the devguide. (The issues are duplicates of each other, so this PR is still addressing only one issue at a time.)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jablonskidev
Updated copyright link to license in repo
0d1f143
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Mar 7, 2021
@jablonskidev jablonskidev mentioned this pull request Mar 7, 2021
Broken "Copyright" link at the footer of DevGuide python/devguide#652
Closed
Mariatta
Mariatta reviewed Mar 8, 2021
View reviewed changes
Comment thread python_docs_theme/layout.html Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jablonskidev @CAM-Gerlach
Added a theme variable for the copyright link
e493aa0
Co-authored-by: CAM Gerlach <[email protected]>
@jablonskidev

jablonskidev commented Mar 20, 2021

Copy link
Copy Markdown
Contributor Author

@CAM-Gerlach Thanks again, that was super helpful, and I learned more about Sphinx along the way. I committed your second suggestion and will also submit a PR to add the license URL to the dictionary html_theme_options inside the devguide's conf.py.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@CAM-Gerlach

CAM-Gerlach commented Mar 21, 2021

Copy link
Copy Markdown
Member

You're welcome, I'm glad! I'm no expert at Sphinx theming either; I know just enough to be dangerous 😆 Looks like its up to @Mariatta for the final review?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jablonskidev
jablonskidev requested a review from Mariatta March 21, 2021 05:43
@matrixise

matrixise commented May 5, 2021

Copy link
Copy Markdown
Member

Could you explain how to use it? because with my workflow, it doesn't work.

git clone https://github.com/python/devguide
cd devguide
make venv
./venv/bin/pip install -U pip
./venv/bin/pip uninstall python-docs-theme
./venv/bin/pip install git+https://github.com/jablonskidev/python-docs-theme.git@patch-1

patch with this diff

diff --git a/conf.py b/conf.py
index 4071095..f20b61f 100644
--- a/conf.py
+++ b/conf.py
@@ -95,6 +95,7 @@ pygments_style = 'sphinx'
 # Use the upstream python-docs-theme
 html_theme = 'python_docs_theme'
 html_theme_options = {
+    'copyright_url': 'https://www.demo.org',
     'collapsiblesidebar': True,
     'issues_url': 'https://github.com/python/devguide/issues/new',
 }
> make html
./venv/bin/sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v3.5.4
making output directory... done
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 35 source files that are out of date
updating environment: [new config] 35 added, 0 changed, 0 removed
reading sources... [100%] triaging
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... WARNING: unsupported theme option 'copyright_url' given
done
writing output... [100%] triaging
generating indices... genindex done
writing additional pages... search done
copying images... [100%] images/python-cyclic-gc-5-new-page.png
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 1 warning.

The HTML pages are in _build/html.

Build finished. The HTML pages are in _build/html.

As you can see, I have got WARNING: unsupported theme option 'copyright_url' given

Any idea?

Thank you

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@matrixise matrixise mentioned this pull request May 5, 2021
Added copyright link for the devguide python/devguide#665
Closed
@CAM-Gerlach

CAM-Gerlach commented May 6, 2021

Copy link
Copy Markdown
Member

Thanks @matrixise . This PR neglected to add

copyright_url =

in theme.conf as mentioned in my review comment above, and it seems I didn't notice the omission earlier, sorry. That's why you're seeing the warning. However, it may still have worked, I'm not certain—I presume you actually checked the build output and the link was not correct?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@matrixise

matrixise commented May 6, 2021

Copy link
Copy Markdown
Member

That's why you're seeing the warning. However, it may still have worked, I'm not certain—I presume you actually checked the build output and the link was not correct?

In fact, without this parameter, the build of the devguide or another project using this PR would generate a Warning with the undefined copyright_url option

In this case, the copyright_url must be defined into the theme.conf file.

@jablonskidev Could you update your PR with the copyright_url option?

Thank you

CAM-Gerlach reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@matrixise matrixise self-assigned this May 6, 2021
jablonskidev added 2 commits May 9, 2021 09:24
@jablonskidev
Defined copyright_url in theme.conf
9bd5f4b
@jablonskidev
Added empty line to end of file
90ba13c
@jablonskidev

jablonskidev commented May 9, 2021

Copy link
Copy Markdown
Contributor Author

@matrixise @CAM-Gerlach Thanks for your feedback! I added copyright_url = to theme.conf. If there's anything else I can do to improve this and help move it forward, then please let me know.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@matrixise

matrixise commented May 9, 2021

Copy link
Copy Markdown
Member

Thanks @jablonskidev I am going to check in few minutes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

matrixise
matrixise suggested changes May 9, 2021
View reviewed changes
Comment thread python_docs_theme/theme.conf Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jablonskidev
Removed empty line
3a214db
matrixise
matrixise approved these changes May 9, 2021
View reviewed changes
@matrixise

matrixise commented May 9, 2021

Copy link
Copy Markdown
Member

@Mariatta What do you think about this PR, for me, it's fine, and we can merge it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@matrixise
matrixise requested a review from JulienPalard May 9, 2021 17:43
@matrixise

matrixise commented May 9, 2021

Copy link
Copy Markdown
Member

@JulienPalard Just to be sure. For you, is there an issue with this PR and the "copyright" link in the existing documentations? Thanks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JulienPalard
JulienPalard approved these changes May 12, 2021
View reviewed changes
matrixise
matrixise approved these changes May 25, 2021
View reviewed changes

@matrixise matrixise left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thank you so much for your contribution.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@matrixise
matrixise merged commit 6ed468a into python:master May 25, 2021
@CAM-Gerlach CAM-Gerlach mentioned this pull request Dec 11, 2021
Add a configuration for license URL. #90
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@CAM-Gerlach CAM-Gerlach CAM-Gerlach left review comments
@JulienPalard JulienPalard JulienPalard approved these changes
@Mariatta Mariatta Awaiting requested review from Mariatta
+1 more reviewer
@matrixise matrixise matrixise approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@matrixise matrixise

Labels

CLA signed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@jablonskidev @CAM-Gerlach @matrixise @JulienPalard @Mariatta @the-knights-who-say-ni
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.