Jest: 404 Not Found for docs in other translation

Created on 18 Mar 2018  路  7Comments  路  Source: facebook/jest

Do you want to request a _feature_ or report a _bug_?
bug

What is the current behavior?
Links to docs and APIs doesn't work in translated GitHub page. (404 Not Found)

Same for https://facebook.github.io/jest/ja/, https://facebook.github.io/jest/es-ES/ ... etc

If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.

Screenshot:
screenshot

What is the expected behavior?
Both direct links (e.g. https://facebook.github.io/jest/docs/zh-Hans/getting-started.html) and hyperlinks (above screenshot) work for homepages in other languages.
P.s. If this is due to the limitation of SPA in GitHub Page, probably some hack like spa-github-pages could help!

Please provide your exact Jest configuration
N/A

Run npx envinfo --preset jest in your project directory and paste the
results here

N/A

Website

Most helpful comment

Potentially fixed in #5822

All 7 comments

Hmm, The build path translated by docusaurus is '/docs/translation_ language/next'

built docs => https://github.com/facebook/jest/tree/gh-pages/docs

Is this a docusaurus issue? 馃

This is probably wrong since we started using versioned docs (#5541).

@JoelMarcey are we doing something weird here?

cc @ericnakagawa

Sent with GitHawk

Potentially fixed in #5822

The links work now, AFAICT.

@SimenB Hi. I just got back from vacation. It looks like this has been fixed. Is there anything that needs changing in the Docusaurus core or are we good?

I think we're good, the error was on our side :)

Was this page helpful?
0 / 5 - 0 ratings