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

add query to the wiki url to hide the header #1363

Merged
merged 2 commits into from
Oct 7, 2022

Conversation

luxumbra
Copy link
Contributor

@luxumbra luxumbra commented Oct 4, 2022

  • wiki issue 355
  • this improves display of the wiki when it is embedded in MetaOS.

Overview

What features/fixes does this PR include?
adds a query to the url for the wiki so it hides and applies some specific styles to the wiki header when it is embedded in metaOS.
We've also removed the old wiki homepage and added a 301 redirect in Vercel to handle the removal of /docs/ from wiki URLs.

Please provide the GitHub issue number
Wiki issue 355

Requires MetaFam/metagame-wiki#356 to be merged first.

Follow up Improvement Ideas

  • please list any improvement/ideas

Implementation

Describe technical (nontrivial / non-obvious) parts of your code

Side effects

Assets

[Include screenshots/videos if it makes reviewing easier.]

- wiki issue #355
- this improves display of the wiki when it is embedded in MetaOS.
@github-actions github-actions bot temporarily deployed to Test-PR-1363 October 4, 2022 17:33 Destroyed
@luxumbra luxumbra requested review from alalonde and dysbulic October 4, 2022 17:34
Copy link
Contributor

@alalonde alalonde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A quick search of the codebase reveals a whole bunch of links to wiki.metagame.wtf, do we want to change those too?

@luxumbra
Copy link
Contributor Author

luxumbra commented Oct 7, 2022

A quick search of the codebase reveals a whole bunch of links to wiki.metagame.wtf, do we want to change those too?

Any links that currently link out to the wiki will work as normal but yes, there's a couple that should be updated - 2 in the megamenu for a start. I'll update them.

@luxumbra luxumbra marked this pull request as draft October 7, 2022 00:14
@github-actions github-actions bot temporarily deployed to Test-PR-1363 October 7, 2022 12:40 Destroyed
@luxumbra
Copy link
Contributor Author

luxumbra commented Oct 7, 2022

@alalonde i have updated the 3 other wiki references in the megamenu but i think other links to the wiki that are present throughout only link out to the wiki and don't iframe the wiki in MetaOS.

Would be nice if we didn't have to link out and could keep all wiki links iframed but that is a bigger job that we could maybe tackle after v1.0?

@luxumbra luxumbra marked this pull request as ready for review October 7, 2022 14:41
@luxumbra
Copy link
Contributor Author

luxumbra commented Oct 7, 2022

@alalonde I am currently doing #1356 which i thought i could tag onto this PR. As far as the other work in this PR goes, I've addressed the issue with the other megamenu items getting missed in the initial work.

Copy link
Member

@dysbulic dysbulic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've no problems.

@dysbulic dysbulic merged commit e781152 into develop Oct 7, 2022
@dysbulic dysbulic deleted the feat/wiki-355-hide-wiki-header branch October 7, 2022 21:35
@github-actions
Copy link

github-actions bot commented Oct 7, 2022

Successfully undeployed the Preview of this Pull Request

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