pytorch / pytorch/tutorials

Edit on GitHub consistent and on all pages

Open
#1,927 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement website
Dominant language
Python
Stars
9.3k
Forks
4.4k
Avg merge
1d 21h
Merged PRs (30d)
4

Description

Various links to GitHub exist in multiple places:

  1. In the top horizontal nav:

edit-on-github-top-nav

  1. On some tutorials pages that have auto generated call to action links, like here
    (https://pytorch.org/tutorials/intermediate/pipeline_tutorial.html):
    edit-on-github

  2. We can add replace the "view source" link in the doc theme (conf.py - hmtl_contenxt) with the Edit on GitHub button (if it actually works):
    Screen Shot 2022-05-23 at 1 33 47 PM (2)
    However, then we can end up having three Edit/View on GitHub links on some pages.

Need to solve this on all docs/tutorials sites:

  • Each page should have a link to editing
  • There should be no duplicate links

cc: @malfet @holly1238

cc @carljparker

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inventorying the GitHub links in the top horizontal navigation, autogenerated tutorial call-to-action links, and the documentation theme configuration in conf.py, including html_contenxt. Determine which pages expose each link and check whether the theme's edit link works. Done means every documentation and tutorial page has one editing link with no duplicates.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.