Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

docs(site): Fix playroom routing in ghpages #585

Merged
merged 1 commit into from
Dec 4, 2018

Conversation

michaeltaranto
Copy link
Contributor

Unfortunately the last PR to add playroom worked everywhere (dev, preview site, & build) but not in ghpages 😞 due to the base href. Refactored the header menu to use a standard anchor for external links, and also prepend the base href to the playroom url.

In order to test this locally i ran up a webserver to preview the ghpages build. Figured i'd add this to help debug issues in the future — no automation, but you can manually run it using npm run preview-gh-pages.

(async() => {
if (!fs.existsSync('docs/dist/seek-style-guide')) { // eslint-disable-line no-sync
await mv('docs/dist', 'docs/seek-style-guide', { mkdirp: true });
await mv('docs/seek-style-guide', 'docs/dist/seek-style-guide', { mkdirp: true });
Copy link
Contributor

Choose a reason for hiding this comment

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

Assuming this is to simulate gh-pages?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah correct, it simulates the repo nesting on https://seek-oss.github.io/ a.la the base href setting.

@michaeltaranto michaeltaranto merged commit fef3e43 into master Dec 4, 2018
@michaeltaranto michaeltaranto deleted the fix-playroom-ghpages-routing branch December 4, 2018 20:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants