Skip to content

hackclub/submit-doc-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Submit Documentation Redirect

A simple Docker app that redirects visitors from the old Submit documentation site (docs.submit.hackclub.com) to the new location at docs.identity.hackclub.com.

How it works

When visitors access any path on docs.submit.hackclub.com, they see a friendly notice that the docs have moved, with a button that redirects them to the equivalent page on docs.identity.hackclub.com/submit/<path>.

Examples:

  • https://docs.submit.hackclub.com/quickstarthttps://docs.identity.hackclub.com/submit/quickstart
  • https://docs.submit.hackclub.com/api-ref/endpoint/authorize-statushttps://docs.identity.hackclub.com/submit/api-ref/endpoint/authorize-status

Build

docker build -t submit-redirect .

Run

docker run -p 6060:6060 submit-redirect

Then visit http://localhost:6060 (or any path like http://localhost:6060/quickstart) to see the redirect page.

Deploy

Deploy this container to your preferred platform and point docs.submit.hackclub.com to it.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •