Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonexistent pages #69

Open
NickCH-K opened this issue Nov 9, 2020 · 2 comments
Open

Nonexistent pages #69

NickCH-K opened this issue Nov 9, 2020 · 2 comments

Comments

@NickCH-K
Copy link
Contributor

NickCH-K commented Nov 9, 2020

I've been working through and fixing all the broken links. There are, unsurprisingly, a bunch of links to pages that don't exist yet. This makes it annoying to fix the broken links, since you have to remember what pages exist, and also is probably annoying for anyone who clicks on them. What would be the best way to make these links "work?"

Having them go to a page that says 'this page doesn't exist yet' seems ideal. I assume it wouldn't quite work to do that automatically, Wikipedia-style, right? If not I can set something up manually.

@khwilson
Copy link
Contributor

khwilson commented Nov 9, 2020

You can do that but probably not out of the box. :-)

You'd need to setup a custom 404.html plus a little custom javascript that looked at the value of the address bar and then ask if you want to create the page.

As for differentiating between broken links and "to be created" links, you could write a script that checked the "Desired Nonexistent Page" and just filtered for those. That's probably a little harder because you'd need to do some weird parse magic, but not undoable....

@aeturrell
Copy link
Contributor

I'm definitely no expert here, but this seems like something that could be done automatically using github actions.

As a possible template, see this example (first response).

I guess we would use desired non-existent (DNE) pages as the reference against which other broken links are compared. If the broken link isn't DNE, either it's truly broken or it should be added to the DNE list.

Not sure how easy passing the broken links on automatically would be, but if that part can be solved then I guess actions and some scripting could do the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants