Commit Graph
8 Commits
Author SHA1 Message Date
jugglinmike 0394fcb44b Bug 1565408 [wpt PR 17796] - [docs] Correct internal links, a=testonly
Automatic update from web-platform-tests
[docs] Correct internal links (#17796)

--

wpt-commits: d3d45d7d0e1bd20653a4f9880c0229cb5c80ceb1
wpt-pr: 17796
2019-07-24 13:34:16 +01:00
Mike Pennisi 5e1f550b46 Bug 1564681 [wpt PR 17371] - [docs] Relocate instruction for reviewers, a=testonly
Automatic update from web-platform-tests
[docs] Relocate instruction for reviewers

This information is not relevant for first-time contributors. Including
it in the same document as the instructions for new contributors risks
confusing or intimidating the less experienced audience.

Relocate the instructions to a dedicated document that can be discovered
by those who specifically wish to learn about reviewing submissions.

--

wpt-commits: 53bf566b00aa0efd9b80496d5d488a338b16ec1c
wpt-pr: 17371
2019-07-24 13:32:14 +01:00
Mike Pennisi 308223e96c Bug 1561406 [wpt PR 17369] - [docs] Simplify recommendation for advanced usage, a=testonly
Automatic update from web-platform-tests
[docs] Simplify recommendation for advanced usage

The steps listed in the "Tips & Tricks" section largely summarize the
instructions in the preceeding sections with two exeptions:

1. the recommendation to rebase (which lacks a definition)
2. the warning against modifying the branch following submission (which
   conflicts with a prior section)

Remove the steps and expand the recommendation of Pro Git.

--

wpt-commits: 4b93a2e9c9f904265ae755291ca253045adb3f66
wpt-pr: 17369
2019-07-24 13:31:12 +01:00
jugglinmike f20acee66f Bug 1560902 [wpt PR 17401] - [docs] Increase strictness of build process, a=testonly
Automatic update from web-platform-tests
[docs] Increase strictness of build process (#17401)

Use the `-W` flag to interpret Sphinx warnings as errors, causing the
build to fail in the presence of either. This makes various authoring
mistakes more visible. Perhaps most importantly: it highlights instances
of "orphaned" content.

Fix all details which were previously reported as warnings and thus
permitted.
--

wpt-commits: 9c6304b71c5ee090ebc1eef02ab32b70444d9704
wpt-pr: 17401
2019-07-24 13:30:35 +01:00
jugglinmike b26e123f96 Bug 1560878 [wpt PR 17368] - [docs] Improve GitHub introduction, a=testonly
Automatic update from web-platform-tests
[docs] Improve GitHub introduction (#17368)

- define the term "upstream"
- simplify sentence structure
- remove references to W3C
- remove platform-specific ("cd") or otherwise unfamiliar ("diff", "ui",
  "repo") terminology
- improve formatting
- reduce use of passive voice
--

wpt-commits: b6c9dcc49399713645c3b956289accc4f76a0792
wpt-pr: 17368
2019-07-24 13:30:14 +01:00
Mike Pennisi 975cca044f Bug 1551911 [wpt PR 16822] - [docs] Re-implement website build process, a=testonly
Automatic update from web-platform-tests
[docs] Re-implement build process using Sphinx

Prior to this commit, WPT used the Jekyll static site generator [1] to
create a website from the project documentation. Jekyll has some
restrictions which limit the utility of the generated website. Sphinx
[2] has a number of features which will enable future improvements to
the documentation

- it can including content from files located outside of the designated
  "documentation" directory (some maintainers prefer to organize content
  elsewhere [3])
- it can generate documentation for Python CLIs like wptrunner [4]
- the website it produces has a fully-featured client-side search
  interface
- it can generating documentation for arbitrary Python files (the WPT
  documentation occasionally falls out of sync with the project's custom
  linter)
- it detects and reports broken links and orphaned content (the WPT
  documentation has suffered from both problems in the past [5] [6] [7])
- as a Python tool, it presents less friction for local development than
  the Ruby-based Jekyll

Although Sphinx parses content in the reStructured Text format by
default, the existing content in WPT is formatted in Markdown. Markdown
is generally preferable for this purpose because it is more familiar to
the potential contributors to WPT and because the maintainers have no
immediate plans to output to a format that is not a website. In
recognition of this, enable the project's support for CommonMark.

[1] https://jekyllrb.com/
[2] https://www.sphinx-doc.org
[3] https://github.com/web-platform-tests/wpt/issues/5289
[4] https://github.com/ribozz/sphinx-argparse
[5] https://github.com/web-platform-tests/wpt/issues/5299
[6] https://github.com/web-platform-tests/wpt/issues/10501
[7] https://github.com/web-platform-tests/wpt/issues/11479

--
Use rST syntax for tables

--
[docs] Introduce tables of contents

In addition to enhancing content discovery for site visitors, thoroughly
applying Sphinx's "table of contents" feature allows the tool to report
when content is not reachable from any page on the website. So-called
"orphaned" content will be integrated in a subsequent commit.

By using the `eval_rst` codeblock, this project can rely on advanced
features available only to reStructured Text without sacrificing the
familiarity of Markdown.

--
[docs] Integrate orphaned content

--
[docs] Rename files to preserve original URLs

Previously, the project's documentation website was built using the
Jekyll static site generator. That tool requires that site content be
placed within directories whose name is prefixed with an underscore
character (`_`). The leading underscore is removed from the generated
content, so it is not present in the URLs of the resultant website.

The Sphinx tool does not use this mechanism for content designation.
Directories with a leading underscore are recreated in the generated
site.

Rename the directories by removing the leading underscore so that the
content generated by Sphinx is available at the same URL as the content
generated by Jekyll. Update internal links accordingly.

This change set was created using the following commands:

    git mv {_,}writing-tests/
    git mv {_,}running-tests/
    git mv {_,}reviewing-tests/
    git mv {_,}admin/
    git mv {_,}appendix/
    git ls-files . -z | \
      xargs -0 sed -i 's/_\(writing-tests\|running-tests\|reviewing-tests\|admin\|appendix\)/\1/g'

--
[docs] Build w/GH Actions and deploy w/GH Pages

--

wp5At-commits: 02d56b7c166590601d8168dbd4e0e92532552abf, afef08f5bf1149bdf7dc4fdb1584c754d8e230a0, 238ea486f7b9adf33044dd438eb32b1151bbde4f, 22d851e14a45e0c2d044b3b595a63ba3f153f254, 970437d5648288c44152eaa4e8a73e247d343bca, 43a1f0b83446a492626ae5bb7364d080cadb2f46
wpt-pr: 16822
2019-06-19 11:05:20 -07:00
Sam Sneddon e1cc1441c2 Bug 1551759 [wpt PR 16806] - Revert docs move to Sphinx (#16458), a=testonly
Automatic update from web-platform-tests
Revert "Use GITHUB_TOKEN as the secret as above"

This reverts commit 5612fb4f2c1bb60561a54cf670eaa971d01d0214.

--
Revert "[docs] Build w/GH Actions and deploy w/GH Pages"

This reverts commit fa5fa41971171e41da4db073aa09e9a95b07c3a7.

--
Revert "[docs] Rename files to preserve original URLs"

This reverts commit 79bf4fc70ce1e3e1c584ab89b3650e7917b56db7.

--
Revert "[docs] Integrate orphaned content"

This reverts commit 560fe29f9a067470feb2a9d7a79598130d61260a.

--
Revert "[docs] Introduce tables of contents"

This reverts commit 685a1275cc3ed8d5c205b1bf619ce92e776b8ca9.

--
Revert "Use rST syntax for tables"

This reverts commit c06b9b330ab485fa33272bfa6585d650d14af944.

--
Revert "[docs] Re-implement build process using Sphinx"

This reverts commit 825f7f95c17742cc69068abc3ccc32f373b8a67f.

--

wpt-commits: e8c6957ec8c2c526566a56ece09975696db19661, 4601549b3e36b6e66113980a497863191d501129, a2db8f3535102c8c30082f1dfd7b4d1963aa30fe, 02c8d09020ec7889987f50cd6a01ce01223b8667, 5448e85af3ed1b495bba1da63c3eb1a94847e833, d9234624eb00420eb5f7ea49313e2e86ec32b1cb, 089b24085ad1f29ddff341682c4a453044f2f74f
wpt-pr: 16806
2019-06-19 11:05:13 -07:00
Mike Pennisi d9f7239550 Bug 1547659 [wpt PR 16458] - [docs] Re-implement website build process, a=testonly
Automatic update from web-platform-tests
[docs] Re-implement build process using Sphinx

Prior to this commit, WPT used the Jekyll static site generator [1] to
create a website from the project documentation. Jekyll has some
restrictions which limit the utility of the generated website. Sphinx
[2] has a number of features which will enable future improvements to
the documentation

- it can including content from files located outside of the designated
  "documentation" directory (some maintainers prefer to organize content
  elsewhere [3])
- it can generate documentation for Python CLIs like wptrunner [4]
- the website it produces has a fully-featured client-side search
  interface
- it can generating documentation for arbitrary Python files (the WPT
  documentation occasionally falls out of sync with the project's custom
  linter)
- it detects and reports broken links and orphaned content (the WPT
  documentation has suffered from both problems in the past [5] [6] [7])
- as a Python tool, it presents less friction for local development than
  the Ruby-based Jekyll

Although Sphinx parses content in the reStructured Text format by
default, the existing content in WPT is formatted in Markdown. Markdown
is generally preferable for this purpose because it is more familiar to
the potential contributors to WPT and because the maintainers have no
immediate plans to output to a format that is not a website. In
recognition of this, enable the project's support for CommonMark.

[1] https://jekyllrb.com/
[2] https://www.sphinx-doc.org
[3] https://github.com/web-platform-tests/wpt/issues/5289
[4] https://github.com/ribozz/sphinx-argparse
[5] https://github.com/web-platform-tests/wpt/issues/5299
[6] https://github.com/web-platform-tests/wpt/issues/10501
[7] https://github.com/web-platform-tests/wpt/issues/11479

--
Use rST syntax for tables

--
[docs] Introduce tables of contents

In addition to enhancing content discovery for site visitors, thoroughly
applying Sphinx's "table of contents" feature allows the tool to report
when content is not reachable from any page on the website. So-called
"orphaned" content will be integrated in a subsequent commit.

By using the `eval_rst` codeblock, this project can rely on advanced
features available only to reStructured Text without sacrificing the
familiarity of Markdown.

--
[docs] Integrate orphaned content

--
[docs] Rename files to preserve original URLs

Previously, the project's documentation website was built using the
Jekyll static site generator. That tool requires that site content be
placed within directories whose name is prefixed with an underscore
character (`_`). The leading underscore is removed from the generated
content, so it is not present in the URLs of the resultant website.

The Sphinx tool does not use this mechanism for content designation.
Directories with a leading underscore are recreated in the generated
site.

Rename the directories by removing the leading underscore so that the
content generated by Sphinx is available at the same URL as the content
generated by Jekyll. Update internal links accordingly.

This change set was created using the following commands:

    git mv {_,}writing-tests/
    git mv {_,}running-tests/
    git mv {_,}reviewing-tests/
    git mv {_,}admin/
    git mv {_,}appendix/
    git ls-files . -z | \
      xargs -0 sed -i 's/_\(writing-tests\|running-tests\|reviewing-tests\|admin\|appendix\)/\1/g'

--
[docs] Build w/GH Actions and deploy w/GH Pages

--

wpt-commits: 825f7f95c17742cc69068abc3ccc32f373b8a67f, c06b9b330ab485fa33272bfa6585d650d14af944, 685a1275cc3ed8d5c205b1bf619ce92e776b8ca9, 560fe29f9a067470feb2a9d7a79598130d61260a, 79bf4fc70ce1e3e1c584ab89b3650e7917b56db7, fa5fa41971171e41da4db073aa09e9a95b07c3a7
wpt-pr: 16458
2019-06-19 11:05:12 -07:00