Edit this page
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 159
- Forks
- 63
- Avg merge
- 7h 26m
- Merged PRs (30d)
- 2
Description
We could add in the footer an 'edit this page' link. So that if I am browsing the about page, clicking on this button will redirect me to https://github.com/PokeAPI/pokeapi.co/blob/master/src/pages/about.html.js
An example is vue: https://vuejs.org/v2/guide/ look at the footer
I think it can be done by looking at the URL the user is currently browsing and replacing the base URL with the Github's one. Something like:
`https://github.com/PokeAPI/pokeapi.co/tree/master/src/pages${window.location.pathname}.js`
This will also increase the popularity of this repo 😄
PS: @cmmartti why the about, the v1 and v2 files are named .html.js? While the others are only .js?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the site's footer and the page source at src/pages/about.html.js, then compare the proposed GitHub URL with the current page pathname. Done means the footer provides an “edit this page” link that redirects to the corresponding source page on GitHub; check the about, v1, and v2 naming mentioned in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100