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

Replace content with link to new repository #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kordwarshuis
Copy link
Collaborator

@kordwarshuis kordwarshuis commented Aug 15, 2024

A simple way to redirect to the current repository.

It is not easy to create an automatic redirect in this environment. This solution has the advantage of being simple, self-explanatory and does not confuse the visitor.

Also see: #5

@henkvancann
Copy link

henkvancann commented Aug 23, 2024

https://trustoverip.github.io/toip/glossary -> That one has to be redirected ->

https://github.com/trustoverip/ctwg-main-glossary is the destination

To do: https://trustoverip.github.io/toip/glossary gets a banner on top of the old list of term definitions.

@kordwarshuis
Copy link
Collaborator Author

kordwarshuis commented Aug 27, 2024

Challenges:
1: Point obsolete glossary to new glossary.
2: Redirect existing URLs (anchors) that point to the current glossary to corresponding URLs (anchors) in the new glossary
3: Create the new glossary location

ad 1: Done
ad 2: To Do (via JS)
ad 3: To Do (via CNAME (?))

There are three glossaries/repos in play:

A: OLD
glossary: https://trustoverip.github.io/toip/glossary
repo: https://github.com/trustoverip/toip
currently exists, but obsolete

B: CURRENT
glossary: https://trustoverip.github.io/ctwg-main-glossary/
repo: https://github.com/trustoverip/ctwg-main-glossary
glossary currently exists, to be phased out

C: NEW
glossary: https://trustoverip.github.io/glossary/
repo: https://github.com/trustoverip/ctwg-main-glossary
glossary to be created, new location

===
A:

===
B:

  • This is the current glossary
  • Links on the internet that point to this glossary and anchors inside the glossary should still work by redirecting to C
  • Instead of the glossary, there should be a provision (via JS) that redirects these anchors

===
C:

  • Final location of the glossary
  • The glossary URL should exist without a corresponding repo since the current repo (B) will keep functioning as the source for this glossary

Possible solutions by chatGPT: https://chatgpt.com/share/cb0896a1-fdda-42e3-ae5d-6805f03cf0be :

Option 2: Use a Redirect in index.html
==> In this option, the target (https://trustoverip.github.io/glossary) does not exist, and it is not made clear how to achieve that

Option 3: GitHub Pages Subdirectory
==> This is not a solution since https://trustoverip.github.io/ctwg-main-glossary/glossary/ is not the URL we are looking for

Option 1: Custom Domain (use CNAME)

==> I still need to get this working.
Testing here: https://github.com/kordwarshuis/test-cname/blob/main/testdir/CNAME

@henkvancann
Copy link

henkvancann commented Aug 27, 2024

point A. is handled in #5

The title "Replace content with link to new repository" doesn't cover what is needed (anymore). We want the links from externals parties to anchors in the old glossary keep working and deliver info.

point B & C can be separate issues and have no connection with this old (archived) glossary. @kordwarshuis Please move the info over to a suitable spot and close this PR?

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

Successfully merging this pull request may close these issues.

3 participants