From 1dc0eb848ab9e29cd5d65f4532506beb0a851b46 Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Tue, 13 Feb 2024 14:33:36 -0500 Subject: [PATCH 1/2] Remove links to Qiskit --- CONTRIBUTING.md | 2 +- README_developers.md | 4 +- docs/_templates/theme_variables.jinja | 16 ---- docs/contributor-guide.rst | 92 +------------------ docs/faq.rst | 2 +- .../quick-topics/Opening-documentation.ipynb | 2 +- qiskit_metal/__init__.py | 2 +- qiskit_metal/_gui/main_window.py | 4 +- qiskit_metal/toolbox_metal/about.py | 4 +- setup.py | 4 +- .../Opening documentation.ipynb | 2 +- 11 files changed, 16 insertions(+), 118 deletions(-) delete mode 100644 docs/_templates/theme_variables.jinja diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aec4c3606..6b9aaf03c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,5 @@ # Contributing to Qiskit Metal -Qiskit Metal follows the overall Qiskit project contributing guidelines. These are all included in the [Qiskit Documentation](https://qiskit.org/documentation/contributing_to_qiskit.html). +Qiskit Metal follows the overall Qiskit project contributing guidelines. These are all included in the [Qiskit Documentation](https://github.com/Qiskit/qiskit/blob/main/CONTRIBUTING.md). Please read those general guidelines first, then the specific details for contributing to Metal below. diff --git a/README_developers.md b/README_developers.md index 7b9fb8a86..db2496dc1 100644 --- a/README_developers.md +++ b/README_developers.md @@ -71,7 +71,7 @@ Similarly, `jupyter lab` will in general execute python code from the `base` env In the two above cases, you will need to setup a jupyter kernel that points to your `` environment, to be able to find and execute successfully the qiskit-metal package. -Check for the instructions to install a new kernel in the [FAQ](https://qiskit.org/documentation/metal/faq.html). +Check for the instructions to install a new kernel in the [FAQ](https://qiskit-community.github.io/qiskit-metal/faq.html). #### Subsequent updates of the conda environment @@ -123,7 +123,7 @@ If you want to use the recently added open-source renderers for [Gmsh](./qiskit_ # Other Common Issues -For other common installation issues, please refer to the [FAQ](https://qiskit.org/documentation/metal/faq.html) +For other common installation issues, please refer to the [FAQ](https://qiskit-community.github.io/qiskit-metal/faq.html) ## Additional steps for developers diff --git a/docs/_templates/theme_variables.jinja b/docs/_templates/theme_variables.jinja deleted file mode 100644 index 170d41625..000000000 --- a/docs/_templates/theme_variables.jinja +++ /dev/null @@ -1,16 +0,0 @@ -{%- set external_urls = { - 'github': 'https://github.com/Qiskit/qiskit-metal', - 'github_issues': 'https://github.com/Qiskit/qiskit-metal/issues', - 'contributing': 'https://github.com/Qiskit/qiskit/blob/master/CONTRIBUTING.md', - 'docs': 'https://qiskit.org/documentation/', - 'twitter': 'https://twitter.com/qiskit', - 'slack': 'https://qiskit.slack.com', - 'home': 'https://qiskit.org/', - 'resources': 'https://qiskit.org/learn', - 'youtube': 'https://www.youtube.com/qiskit', - 'iqx': 'https://quantum-computing.ibm.com/', - 'iqx_systems': 'https://quantum-computing.ibm.com/docs/manage/backends/', - 'ibm': 'https://www.ibm.com/quantum-computing/', - 'tutorials': 'https://qiskit.org/documentation/metal/tut/index.html', -} --%} diff --git a/docs/contributor-guide.rst b/docs/contributor-guide.rst index 6b67e537c..660d6a34c 100644 --- a/docs/contributor-guide.rst +++ b/docs/contributor-guide.rst @@ -211,9 +211,7 @@ documentation locally and save the output to ``docs/_build/html``. Additionally, the Docs CI job on azure pipelines will run this and host a zip file of the output that you can download and view locally. -If you have an issue with the `combined documentation `__ -that is maintained in the `Qiskit/qiskit repo `__, -you can open a `documentation issue `__ +You can open a `documentation issue `__ if you see doc bugs, have a new feature that needs to be documented, or think that material could be added to the existing docs. @@ -399,15 +397,14 @@ and that they want the display name of this file to be ``MyQComponent``. Contributing to Documentation ***************************** -Qiskit documentation is shaped by the `docs as code +Qiskit Metal documentation is shaped by the `docs as code `__ philosophy, primarily -drawn from Qiskit code comments in the `style of API documentation +drawn from Qiskit Metal code comments in the `style of API documentation `__. -The documentation is built from the master branch of `Qiskit/qiskit/docs -`__ using `Sphinx +The documentation is built using `Sphinx `__. The majority of documentation, under -`API Reference `__, is +`API Reference `__, is drawn from code comments in the repositories listed in :ref:`where_things_are`. @@ -497,82 +494,3 @@ Tutorials Jupyter notebook tutorials showing off features of Qiskit Metal are located in the `_tutorials_` folder. If you add a new feature, please add a demonstration of its use to a notebook or start a new notebook. - - -Documentation Integration -------------------------- - -The hosted documentation at https://qiskit.org/documentation/ covers the entire -Qiskit project; Metal is just one component of that. As such, the documentation -builds for the hosted version are built by the Qiskit meta-package repository -https://github.com/Qiskit/qiskit. When commits are merged to that repo, the -output of Sphinx builds are uploaded to the qiskit.org website. Those Sphinx -builds are configured to pull in the documentation from the version of the -Qiskit elements installed by the meta-package at that point. For example, if -the meta-package version is currently 0.13.0, then that will copy the -documentation from Metal's 0.10.0 release. When the meta-package's requirements -are bumped, then it will start pulling documentation from the new version. This -means that fixes for incorrect API documentation will need to be -included in a new release. Documentation fixes are valid backports for a stable -patch release per the stable branch policy (see that section below). - -During the build process, the contents of each element's ``docs/apidocs/`` -are recursively copied into a shared copy of ``doc/apidocs/`` in the meta-package -repository along with all the other elements. This means that what is in the root of -docs/apidocs on each element at a release will end up on the root of -https://qiskit.org/documentation/apidoc/. - - - -Translating Documentation -========================= - -Qiskit documentation is translated (localized) using Crowdin, a software and web -localization platform that allows organizations to coordinate translation -projects and collaborate with communities to translate materials. Crowdin allows -our community of translators to amplify their impact by automatically reusing -the work invested translating one sentence to translate other, similar -sentences. Crowdin also makes translations resilient to many types of changes to -the original material, such as moving sentences around, even across files. - -Qiskit localization requests are handled in `Qiskit Translations `__ -repository. To contribute to Qiskit localization, please follow these steps: - -#. Add your name (or ID) to the `LOCALIZATION_CONTRIBUTORS - `__ - file. -#. Create a pull request (PR) to merge your change. Make sure to follow the template - to open a Pull Request. - - .. note:: - - - Each contributor has to create their own PR and sign the CLA. - - Please mention the language that you'd like to contribute to in the PR - summary. - - If you have an open issue for a language request, **add the issue link - to the PR**. -#. You will be asked to sign the Qiskit Contributors License Agreement (CLA); - please do so. -#. A minimum of **three contributors** per language are necessary for any new - languages to be added, to receive official support from the administrators of - the localization project. -#. Among the group of contributors, a translation lead must be identified to serve - as a liaison with the administrators of the localization project. - The lead must contact: Yuri Kobayashi (yurik@jp.ibm.com) by email. -#. In the `Qiskit-Docs `__ - Crowdin project, choose the language that you want to contribute to. - - .. note:: - - As mentioned in the blog post, `Qiskit in my language is Qiskit `__, - we want to make sure that translated languages have enough community support - to build a translation team with translators, proofreaders, and translation leads. - If you want to be a translation lead or would be willing to join a new - translation project team, you can open a `GitHub issue `__ - to start a discussion with the Qiskit team and recruit translation project members. -#. Click the **Join** button and **paste the URL of your PR** in the dialog box where you - are asked why you want to join the Crowdin project. - -The administrators of the Crowdin project will review your request and give you -access as quickly as they can. - diff --git a/docs/faq.rst b/docs/faq.rst index 066740adf..49b924634 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -190,7 +190,7 @@ Documentation **Q: I am seeing a lot of warnings when I build the docs. How do I resolve them?** -**A:** There is no need to build the docs locally unless you *really* want to. The docs can be accessed without building them yourself by navigating to ``_. +**A:** There is no need to build the docs locally unless you *really* want to. The docs can be accessed without building them yourself by navigating to ``_. If you chose to build the docs yourself, some users may see a list of warnings when building the docs. Warnings about matplotlib text role can be safely ignored. diff --git a/docs/tut/quick-topics/Opening-documentation.ipynb b/docs/tut/quick-topics/Opening-documentation.ipynb index 80eaadb0c..127ce1435 100644 --- a/docs/tut/quick-topics/Opening-documentation.ipynb +++ b/docs/tut/quick-topics/Opening-documentation.ipynb @@ -19,7 +19,7 @@ "metadata": {}, "source": [ "The documentation can be found here\n", - "https://qiskit.org/documentation/metal/" + "https://qiskit-community.github.io/qiskit-metal/" ] }, { diff --git a/qiskit_metal/__init__.py b/qiskit_metal/__init__.py index c1cd2a36e..f2c5d596b 100644 --- a/qiskit_metal/__init__.py +++ b/qiskit_metal/__init__.py @@ -37,7 +37,7 @@ >>>>>> from the list of qiskit-metal package dependencies in Windows. <<<<<<\n \ >>>>>>>> Before you can use Qiskit Metal, please install geopandas. <<<<<<<<\n \ >>>> For more information, you can follow the instructions on this FAQ <<<<<\n \ - >>>>>>>>>>>>> https://qiskit.org/documentation/metal/faq.html <<<<<<<<<<<<<<\n" + >>>>>>>>>>>>> https://qiskit-community.github.io/qiskit-metal/faq.html <<<<<<<<<<<<<<\n" ) raise diff --git a/qiskit_metal/_gui/main_window.py b/qiskit_metal/_gui/main_window.py index e9d4814b1..bced70818 100644 --- a/qiskit_metal/_gui/main_window.py +++ b/qiskit_metal/_gui/main_window.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. @@ -221,7 +219,7 @@ def create_build_log_window(self, _=None): @slot_catch_error() def open_web_help(self, _=None): """"Handles click on Build History button.""" - webbrowser.open('https://qiskit.org/documentation/metal/', new=1) + webbrowser.open('https://qiskit-community.github.io/qiskit-metal/', new=1) @slot_catch_error() def set_force_close(self, ison: bool): diff --git a/qiskit_metal/toolbox_metal/about.py b/qiskit_metal/toolbox_metal/about.py index 5752484cf..209c9c58d 100644 --- a/qiskit_metal/toolbox_metal/about.py +++ b/qiskit_metal/toolbox_metal/about.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. @@ -108,7 +106,7 @@ def get_module_doc_page(module, return Path(os.path.dirname(module.__file__)) / folder / page -def open_docs(page='https://qiskit.org/documentation/metal/'): +def open_docs(page='https://qiskit-community.github.io/qiskit-metal/'): """Open the qiskit_metal documentation in HTML. Open the URL in new window, raising the window if possible. diff --git a/setup.py b/setup.py index c8d632d0b..77880a6a0 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ long_description_content_type="text/markdown", url="https://github.com/Qiskit/qiskit-metal", author="Qiskit Metal Development Team", - author_email="qiskit@qiskit.org", + author_email="qiskit@us.ibm.com", license="Apache 2.0", classifiers=[ "License :: OSI Approved :: Apache Software License", @@ -54,7 +54,7 @@ install_requires=requirements, project_urls={ "Bug Tracker": "https://github.com/Qiskit/qiskit-metal/issues", - "Documentation": "https://qiskit.org/documentation/metal", + "Documentation": "https://qiskit-community.github.io/qiskit-metal/", "Source Code": "https://github.com/Qiskit/qiskit-metal", }, ) diff --git a/tutorials/Appendix B Quick topics/Opening documentation.ipynb b/tutorials/Appendix B Quick topics/Opening documentation.ipynb index 5d1c10ba4..18d51d5f4 100644 --- a/tutorials/Appendix B Quick topics/Opening documentation.ipynb +++ b/tutorials/Appendix B Quick topics/Opening documentation.ipynb @@ -19,7 +19,7 @@ "metadata": {}, "source": [ "The documentation can be found here\n", - "https://qiskit.org/documentation/metal/" + "https://qiskit-community.github.io/qiskit-metal/" ] }, { From 161d41d98557f8053c6539fdca4403372d7fa81f Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Tue, 13 Feb 2024 15:29:33 -0500 Subject: [PATCH 2/2] Fix fmt --- qiskit_metal/_gui/main_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qiskit_metal/_gui/main_window.py b/qiskit_metal/_gui/main_window.py index bced70818..7b1aa6d18 100644 --- a/qiskit_metal/_gui/main_window.py +++ b/qiskit_metal/_gui/main_window.py @@ -219,7 +219,8 @@ def create_build_log_window(self, _=None): @slot_catch_error() def open_web_help(self, _=None): """"Handles click on Build History button.""" - webbrowser.open('https://qiskit-community.github.io/qiskit-metal/', new=1) + webbrowser.open('https://qiskit-community.github.io/qiskit-metal/', + new=1) @slot_catch_error() def set_force_close(self, ison: bool):