Skip to content

Remove separate script for nightly devsite diff #4105

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

Merged
merged 3 commits into from
May 13, 2021

Conversation

balopat
Copy link
Contributor

@balopat balopat commented May 12, 2021

After the v0.11 release there is no need for a separate script for the extra modules.
I also added the fix for the code_prefix_url which should fix the issue with the broken "View Source" functionality.
An unrelated nit that I changed is the default value for the site_url parameter - we had this URL structure when we first had the internal staging site hosted on tensorflow's site, now it's in line with what we have live.

For the next module extractions this script will need to cater for both the stable (v0.11) and the nightly (from master) version, it will be more manageable that way.

Fixes #4066.
Fixes #4104.

@balopat balopat requested review from cduck, vtomole and a team as code owners May 12, 2021 22:05
@balopat balopat requested a review from dstrain115 May 12, 2021 22:05
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label May 12, 2021
Copy link
Collaborator

@95-martin-orion 95-martin-orion left a comment

Choose a reason for hiding this comment

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

A nit and a clarifying question, otherwise LGTM.

"The url prefix for links to code.",
)

flags.DEFINE_bool("search_hints", True, "Include metadata search hints in the generated files")

flags.DEFINE_string("site_path", "quark/cirq/api_docs/python", "Path prefix in the _toc.yaml")
flags.DEFINE_string("site_path", "reference/python", "Path prefix in the _toc.yaml")
Copy link
Collaborator

Choose a reason for hiding this comment

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

What prompted this change? At first glance it doesn't seem related to either of the linked issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is non-material, because the internal caller overrides this anyway with the correct string, but it was an outdated default value (we had this URL structure when we first had the internal staging site hosted on tensorflow's site) that I just updated. I'll include that in the PR description.

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label May 13, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label May 13, 2021
@CirqBot CirqBot merged commit 115e50e into quantumlib:master May 13, 2021
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels May 13, 2021
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
After the v0.11 release there is no need for a separate script for the extra modules.
I also added the fix for the code_prefix_url which should fix the issue with the broken "View Source" functionality.
An unrelated nit that I changed is the default value for the site_url parameter - we had this URL structure when we first had the internal staging site hosted on tensorflow's site, now it's in line with what we have live. 

For the next module extractions this script will need to cater for both the stable (v0.11) and the nightly (from master) version, it will be more manageable that way.

Fixes quantumlib#4066.
Fixes quantumlib#4104.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API reference for cirq.google is broken Documentation code with dead link
3 participants