Commit Graph

52 Commits

Author SHA1 Message Date
Sylvestre Ledru
0ac5b07241 Bug 1684863 - Update to Sphinx 3.4.2 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100672
2021-01-04 14:16:28 +00:00
Renovate Bot
07ec351c5b Bug 1683628 - Update dependency Sphinx to v3.4.0 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Found by renovate bot: https://github.com/sylvestre/gecko-dev/pull/128/files

Differential Revision: https://phabricator.services.mozilla.com/D100228
2020-12-21 12:17:03 +00:00
Renovate Bot
88ba586595 Bug 1683628 - Update dependency recommonmark to v0.7.1 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
reported https://github.com/sylvestre/gecko-dev/pull/346/files

Differential Revision: https://phabricator.services.mozilla.com/D100229
2020-12-21 12:14:19 +00:00
Julien Cristau
01b1e114d8 Bug 1681736 - Set character set when uploading docs. r=sylvestre DONTBUILD
Setting charset to utf-8 seems a safer bet than the default latin1 these
days.

Differential Revision: https://phabricator.services.mozilla.com/D99364
2020-12-10 16:38:38 +00:00
Zac Svoboda
afc3515f1c Bug 1679631 - documentation: Upgrade the markdown dependency r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D98107
2020-11-28 17:56:16 +00:00
Zac Svoboda
2c9c8170d3 Bug 1679396 - Upgrade Sphinx and update requirements r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D97994
2020-11-27 08:54:33 +00:00
Renovate Bot
97196a2329 Bug 1679054 - Update dependency sphinx-copybutton to v0.3.1 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Reported here:
https://github.com/sylvestre/gecko-dev/pull/227

Differential Revision: https://phabricator.services.mozilla.com/D97893
2020-11-23 20:04:24 +00:00
Sylvestre Ledru
5c7636b11a no bug - Fix more docs warnings (404) r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D92765
2020-10-07 15:30:36 +00:00
Sylvestre Ledru
6f3f63970d Bug 1667830 - Update of the various dependencies used by the doc r=firefox-source-docs-reviewers,ahal,championshuttler
Differential Revision: https://phabricator.services.mozilla.com/D91617
2020-09-28 20:42:52 +00:00
Mitchell Hentges
648ccad85b Bug 1654074: Publish glean handle to mach commands r=firefox-build-system-reviewers,rstewart
Allows mach commands to define their own glean metrics with the `metrics_path` @CommandProvider parameter.
When `metrics_path` is defined:
* A `metrics` kwarg is provided to the decorated class. This `metrics` handle is a Glean instance, so Glean documentation should be consulted for usage information.
* When `mach doc telemetry` is run, metrics docs will be generated from all the registered metrics files.

Note: there was some consideration between making `metrics_path` a @CommandProvider or @Command parameter.
In the end, @CommandProvider seemed like a better fit because:
* Metrics seem to be more associated with the entire class than a specific command/method. This is because a class represents a "domain", and that domain may have different commands that have overlapping metrics.  Accordingly, all the metrics should be defined once as available to the entire class.
* Currently, @Command methods only take parameters that map one-to-one with CLI arguments. It could seem inconsistent to have one exception: the metrics handle

Differential Revision: https://phabricator.services.mozilla.com/D85953
2020-09-15 21:15:20 +00:00
Andrew Halberstadt
78e5d41e3e Bug 1664771 - [docs] Remove bogus 'Expires' header when uploading docs, r=firefox-source-docs-reviewers,championshuttler
As per:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html

This header doesn't actually control when an object gets deleted. Rather it is when the object
expires in the browser cache (i.e, when the expiry is hit, the browser will reload the object).

Remove this as it's only causing confusion.

Differential Revision: https://phabricator.services.mozilla.com/D90162
2020-09-14 20:06:57 +00:00
Sylvestre Ledru
fb75df0e5c Bug 1663916 - mdn to in-tree: Update of the mdn import doc r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D89594
2020-09-09 15:13:07 +00:00
Sylvestre Ledru
da34b6a58e Bug 1661514 - Reformat some python files with black 20.8b1 r=rstewart
# ignore-this-changeset

Depends on D88711

Differential Revision: https://phabricator.services.mozilla.com/D88712
2020-09-07 14:05:10 +00:00
Cristina Coroiu
8eaafae8fd Backed out 2 changesets (bug 1661514) for lint failure on a CLOSED TREE
Backed out changeset 8e58c88f756b (bug 1661514)
Backed out changeset aef89f9a8031 (bug 1661514)
2020-09-01 19:34:12 +03:00
Sylvestre Ledru
5ee2fbd7cb Bug 1661514 - Reformat some python files with black 20.8b1 r=rstewart
# ignore-this-changeset

Depends on D88711

Differential Revision: https://phabricator.services.mozilla.com/D88712
2020-08-31 17:06:22 +00:00
Emil Farisan
76574f22bf Bug 1657121 - exclude uuid from s3_delete_missing. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D88282
2020-08-27 20:02:59 +00:00
Sylvestre Ledru
18115d5efd Bug 1660615 - Mach doc: sphinx: pass the -T option by default r=firefox-source-docs-reviewers,championshuttler DONTBUILD
It shows exceptions by default:
https://www.sphinx-doc.org/en/master/man/sphinx-build.html#cmdoption-sphinx-build-T

Differential Revision: https://phabricator.services.mozilla.com/D87969
2020-08-23 14:51:51 +00:00
Sylvestre Ledru
fee0487d60 Bug 1652286 - Firefox doc: Workaround the BlockingIOError error r=firefox-source-docs-reviewers,championshuttler
Seems the same issue as https://github.com/travis-ci/travis-ci/issues/8920

Differential Revision: https://phabricator.services.mozilla.com/D87952
2020-08-23 08:49:48 +00:00
Sylvestre Ledru
da495a5a28 Bug 1660615 - Add a verbose mode for "mach doc" r=firefox-source-docs-reviewers,championshuttler
And show the sphinx arguments

Differential Revision: https://phabricator.services.mozilla.com/D87951
2020-08-23 09:04:26 +00:00
Sylvestre Ledru
dcc2514c21 Bug 1660615 - ride along - reformat moztreedocs with black r=firefox-source-docs-reviewers,championshuttler
Differential Revision: https://phabricator.services.mozilla.com/D87950
2020-08-23 08:49:52 +00:00
Sylvestre Ledru
612c02c213 Bug 1658812 - sphinx/autodoc should also ignore tests directory r#?firefox-source-docs-reviewers r=firefox-source-docs-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D86854
2020-08-22 14:23:47 +00:00
Andrew Halberstadt
456d9a582f Bug 1655107 - [moztreedocs] Use pip-tools rather than pipenv to manage doc dependencies r=championshuttler,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D85048
2020-08-17 17:46:23 +00:00
Andrew Halberstadt
9acf8feccb Bug 1659466 - [docs] Don't set up redirects for try pushes, r=firefox-source-docs-reviewers,sylvestre,championshuttler
Differential Revision: https://phabricator.services.mozilla.com/D87286
2020-08-17 17:24:54 +00:00
Bogdan Tara
42af559fd1 Backed out changeset 6124d9a5422b (bug 1655107) for pip related failures CLOSED TREE 2020-08-17 17:32:40 +03:00
Andrew Halberstadt
b5d2c40afa Bug 1655107 - [moztreedocs] Use pip-tools rather than pipenv to manage doc dependencies r=championshuttler,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D85048
2020-08-17 14:07:35 +00:00
Sylvestre Ledru
1bcabb9d34 Bug 1657926 - Move to sphinx 3.1.2 and sphinx-js 3.0.1 r=championshuttler
Hopefully, it will help with the intermittent issues.
And it seems that the warnings are better presented.

Differential Revision: https://phabricator.services.mozilla.com/D86361
2020-08-11 15:26:16 +00:00
Ricky Stewart
31755b431d Bug 1657650 - Require that Mach command providers subclass MachCommandBase. r=remote-protocol-reviewers,marionette-reviewers,maja_zf,mhentges,froydnj
Today we don't require that `mach` `CommandProvider`s subclass from any particular parent class and we're very lax about the requirements they must meet. While that's convenient in certain circumstances, it has some unfortunate implications for feature development.

Today the only requirements that we have for `CommandProvider`s are that they have an `__init__()` method that takes either 1 or 2 arguments, the second of which must be called `context` and is populated with the `mach` `CommandContext`. Again, while this flexibility is occasionally convenient, it is limiting. As we add features to `mach`, having a better idea what the shape of our `CommandProvider`s are and how we can instantiate them and use them is increasingly important, and this gives us additional control when having `mach` configure `CommandProvider`s based on data that is only available at the `mach` level. In particular, we plan to leverage this in bugs 985141 and 1654074.

Here we add validation to the `CommandProvider` decorator to ensure all classes inherit from `MachCommandBase`, update all `CommandProvider`s in-tree to inherit from `MachCommandBase`, and update source and test code accordingly.

Follow-up work: we now require (de facto) that the `context` be populated with a `topdir` attribute by the `populate_context_handler` function, since instantiating the `MachCommandBase` requires a `topdir` be provided. This is fine for now in the interest of keeping this patch reasonably sized, but some additional refactoring could make this cleaner.

Differential Revision: https://phabricator.services.mozilla.com/D86255
2020-08-07 18:24:59 +00:00
Ricky Stewart
3ddb065650 Bug 1656611 - Remove objdir support from virtualenv_packages.txt handling r=mhentges,froydnj
I noticed that the `objdir:build` entry in `build/virtualenv_packages.txt` entry was apparently unused. This originates from bug 841713, seven years ago, when the `objdir` handling was introduced. Today, this doesn't appear to be serving a purpose. There is no Python library in my `$objdir/build` directory; nor can I see anything in `build/moz.build` or any related files suggesting one could ever appear. I can only assume this feature has outlived its usefulness, so delete it and the relevant in-tree support.

This necessitates slightly changing the signature and implementation of the `activate_pipenv()` method; also update all callers.

Differential Revision: https://phabricator.services.mozilla.com/D85635
2020-08-07 16:03:36 +00:00
Bogdan Tara
57ed67928b Backed out changeset 760fc38c793b (bug 1656611) for doc failure complaining about virtualenv_root CLOSED TREE 2020-08-07 18:57:56 +03:00
Ricky Stewart
41e473f17b Bug 1656611 - Remove objdir support from virtualenv_packages.txt handling r=mhentges,froydnj
I noticed that the `objdir:build` entry in `build/virtualenv_packages.txt` entry was apparently unused. This originates from bug 841713, seven years ago, when the `objdir` handling was introduced. Today, this doesn't appear to be serving a purpose. There is no Python library in my `$objdir/build` directory; nor can I see anything in `build/moz.build` or any related files suggesting one could ever appear. I can only assume this feature has outlived its usefulness, so delete it and the relevant in-tree support.

This necessitates slightly changing the signature and implementation of the `activate_pipenv()` method; also update all callers.

Differential Revision: https://phabricator.services.mozilla.com/D85635
2020-08-06 18:21:35 +00:00
Mitchell Hentges
ccdcc211eb Bug 1653049: Docs support markdown tables r=championshuttler
Glean generates telemetry documentation in markdown and uses tables.

This revision adds support for rendering markdown tables using an extension.

Differential Revision: https://phabricator.services.mozilla.com/D83685
2020-07-17 17:11:33 +00:00
Emil Farisan
bac22e4499 Bug 1651606 - fix the 404 not found issue when accessing the generated docs link on S3. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D83265
2020-07-15 11:34:04 +00:00
championshuttler
7670b95ed4 Bug 1498604 - Update the message to use mach npm now.r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D83418
2020-07-13 23:12:38 +00:00
emilfs
dafec58d06 Bug 1643293 - added new job in doc to render documentation at review phase r=sylvestre,ahal
Differential Revision: https://phabricator.services.mozilla.com/D80428
2020-07-08 13:53:45 +00:00
chocos
1e019373f9 Bug 1648959 - Done internal linking in docs in tools Directory DONTBUILD.r=championshuttler
Differential Revision: https://phabricator.services.mozilla.com/D81465
2020-07-01 19:35:26 +00:00
Sonia Singla
2d8647fd24 Bug 1643819 - Prevent Firefox Docs to copy $ while copying using copy button.r=championshuttler,ahal
Differential Revision: https://phabricator.services.mozilla.com/D80643
2020-06-23 15:03:30 +00:00
championshuttler
b8d9ae4413 Bug 1643074 - Add a copy button to firefox docs to copy commands. r=firefox-source-docs-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D78110
2020-06-03 19:22:03 +00:00
championshuttler
cce153f70e Bug 1639044 - Update the sphinxhcontrib-mermaid package for firefox docs.r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D75861
2020-05-20 12:27:26 +00:00
Jonathan Watt
c6c74ac1f0 Bug 1636304. Fix and improve the Mermaid documentation. r=sylvestre
The second example, when copied and pasted, is completely borked since it
is not preceeded by the line that declares what follows to be a Mermaid
diagram. This change fixes that.

It also fixes the prose to read slightly less awkwardly in places.

Finally, this change also adds a link to the Mermaid Live Editor to make
readers aware of this useful tool.

Differential Revision: https://phabricator.services.mozilla.com/D74338
2020-05-07 23:16:00 +00:00
Anurag Aggarwal
84f13a772a Bug 1628275 - Document how to run a try job for the in-tree documentation.r=firefox-source-docs-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D70589

--HG--
extra : moz-landing-system : lando
2020-04-13 21:24:43 +00:00
Anurag Aggarwal
dead557566 Bug 1614820 - Fixed normandy docs not re rendering.r=sylvestre,ahal
Differential Revision: https://phabricator.services.mozilla.com/D66911

--HG--
extra : moz-landing-system : lando
2020-03-20 20:21:07 +00:00
Sylvestre Ledru
7156338c89 Bug 1616969 - docs: Bring back the larger display of the docs r=championshuttler
Differential Revision: https://phabricator.services.mozilla.com/D63542

--HG--
rename : tools/moztreedocs/_static/custom_theme.css => docs/_static/custom_theme.css
extra : moz-landing-system : lando
2020-02-20 20:46:56 +00:00
Andrew Halberstadt
08dee930d7 Bug 1614908 - [docs] Stop applying redirects to the 'main/<ver>' namespace, r=firefox-source-docs-reviewers,sylvestre
AWS apparently has a 50 routing rule limit on their S3 bucket websites. We are
currently applying all our redirect rules 3 times, so have exceeded the limit
despite only having 18 defined rules.

This patch ensures we only apply the rules twice, giving us a bit more
breathing room. In the future, I'd like to try and set up a redirect
from '/' to '/latest' so we can further reduce the number of places we
upload files.

Differential Revision: https://phabricator.services.mozilla.com/D63200

--HG--
extra : moz-landing-system : lando
2020-02-18 15:27:38 +00:00
Sylvestre Ledru
c5409fd2b1 Bug 1607143 - Ride along - Remove a useless declaration and add an empty line r=championshuttler
Depends on D62027

Differential Revision: https://phabricator.services.mozilla.com/D62028

--HG--
extra : moz-landing-system : lando
2020-02-11 12:50:44 +00:00
Sylvestre Ledru
33479335bf Bug 1607143 - Doc: run some post processing code to fix the url to mermaid js r=championshuttler
Also bump to the latest version of mermaid js

Differential Revision: https://phabricator.services.mozilla.com/D62027

--HG--
extra : moz-landing-system : lando
2020-02-11 12:50:04 +00:00
Sylvestre Ledru
095594eed0 no bug - Add review groups + info about unit tests in mozlint r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D61390

--HG--
extra : moz-landing-system : lando
2020-02-10 19:52:46 +00:00
championshuttler
95c0215706 Bug 1608679 - Fix the path of docs config file.r=sylvestre
Depends on D59623

Differential Revision: https://phabricator.services.mozilla.com/D59624

--HG--
extra : moz-landing-system : lando
2020-01-12 12:37:48 +00:00
championshuttler
8a3af3f0e0 Bug 1608679 - Move managing docs to tools/moztreedocs/docs to include in docs tree.r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D59623

--HG--
rename : tools/docs/docs/jsdoc-support.rst => tools/moztreedocs/docs/jsdoc-support.rst
rename : tools/docs/docs/mermaid-integration.rst => tools/moztreedocs/docs/mermaid-integration.rst
rename : tools/docs/docs/nested-docs.rst => tools/moztreedocs/docs/nested-docs.rst
rename : tools/docs/docs/redirect.rst => tools/moztreedocs/docs/redirect.rst
rename : tools/docs/docs/rstlint.rst => tools/moztreedocs/docs/rstlint.rst
rename : tools/docs/docs/server-synchronization.rst => tools/moztreedocs/docs/server-synchronization.rst
extra : moz-landing-system : lando
2020-01-12 12:39:39 +00:00
Ethan Glasser-Camp
d68a88e8fe Bug 1607355: Fix path to redirect configuration r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D58880

--HG--
extra : moz-landing-system : lando
2020-01-07 16:46:58 +00:00
Ethan Glasser-Camp
7cd2a98da0 Bug 1606026: Move existing documentation into new locations r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D58338

--HG--
rename : tools/docs/docs/contribute/mozilla_source_code_directory_structure.rst => docs/contributing/directory_structure.rst
rename : tools/docs/docs/contribute/how_to_contribute_firefox.rst => docs/contributing/how_to_contribute_firefox.rst
rename : tools/docs/docs/adding-documentation.rst => tools/moztreedocs/docs/adding-documentation.rst
rename : tools/docs/docs/index.rst => tools/moztreedocs/docs/index.rst
rename : tools/docs/docs/mdn-import.rst => tools/moztreedocs/docs/mdn-import.rst
extra : moz-landing-system : lando
2020-01-06 16:38:34 +00:00