This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 244
Add a 404 page and an “Edit this page” link, as well as some other polish #367
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1457cc3
Add a 404 page
j-f1 66e0596
Add a CSS sourcemap
j-f1 a890f83
Add an “Edit this page” link to the footer
j-f1 0747bf6
Add a popup banner when viewing an outdated docs page
j-f1 b7c7d87
Fix edit links for old docs versions
j-f1 08c6838
Use `site.url` in all HTML links
j-f1 29702d8
Make the ESLint logo align vertically with the text
j-f1 3aae49d
Don’t require the site to be served at `/` for the version warning to…
j-f1 ac4f3a5
Fix logo links when not hosting the site at the root
j-f1 ed2222f
Revert "Add a CSS sourcemap"
j-f1 35de147
Revert "Add a popup banner when viewing an outdated docs page"
j-f1 dbef946
Use the `edit_link` parameter when present to create the edit link
j-f1 c394f3e
Update the docs based on eslint/eslint#9049
j-f1 844cf43
Update with latest changes from the ESLint PR
j-f1 81066b6
Merge branch 'master' into polish
j-f1 14993e2
Merge remote-tracking branch 'upstream/master' into polish
j-f1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: 404 | ||
layout: doc | ||
--- | ||
|
||
# 4![0](/img/logo.svg)4 | ||
{:.four-oh-four-header} | ||
## Something’s missing | ||
### [Go home](/) or [check out the rules](/docs/rules)? | ||
[Get Started with ESLint »](/docs/user-guide/getting-started){:.btn.btn-default.btn-lg.btn-block.btn-getting-started role="button"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for changing everything to use absolute paths? While they will be gzipped, they will still add to download size of the page, and I'm not sure I know the advantages of using them in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When editing a forked version, the site isn’t hosted at the root of the domain, so adding these allows the site to load the assets properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But all of those path are starting with
/
so if you forked the whole repo, you probably have all of the assets in that repo as well, right? I guess all of us always just used local install of Jekyll to work on the site, and never tried it in a fork.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, because the site would end up at
https://<username>.github.io/eslint.github.io
, so the path/img/logo.svg
would load the image fromhttps://<username>.github.io/img/logo.svg
, rather thanhttps://<username>.github.io/eslint.github.io/img/logo.svg
.I've also encountered this issue when trying to demo things for this repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, got it. Thanks. As I mentioned, I always used local Jekyll, and that's not a problem there, since it's always
http://localhost:port/
in that case, I'm 👍 for adding that in.