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

Pages don't pick up HTML files in 2.0 #2833

Closed
apsdehal opened this issue May 29, 2020 · 4 comments
Closed

Pages don't pick up HTML files in 2.0 #2833

apsdehal opened this issue May 29, 2020 · 4 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@apsdehal
Copy link

🐛 Bug Report

@docusaurus/plugin-content-pages doesn't pick up HTML pages in 2.x.

Have you read the Contributing Guidelines on issues? Yes

(Write your answer here.)

To Reproduce

  1. Create a new website using Facebook template.
  2. Create a folder under src/pages, let's say api
  3. Create a new file under src/pages/api index.html and fill it with dummy HTML and lorem ipsum text.
  4. Build the website

Expected behavior

Like in 1.0, the plugin should pick up html pages.

(Write what you thought would happen.)

Actual Behavior

404, didn't pick up the html file.

Your Environment

  • Docusaurus version used:2.0.0-alpha.56
  • Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Node version: v12.17.0
  • Operating system and version (desktop or mobile): Ubuntu 16.04
@apsdehal apsdehal added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels May 29, 2020
@yangshun
Copy link
Contributor

I think we missed porting this feature to v2. We currently only look at JS files. Ideally we support both markdown and JS files for the pages plugin.

@yangshun yangshun removed the status: needs triage This issue has not been triaged by maintainers label May 29, 2020
@apsdehal
Copy link
Author

Is there a way around this? I am trying to replicate BoTorch's setup with Sphinx API docs. This is a requirement for doing that.

@yangshun
Copy link
Contributor

If those pages are entirely standalone, you could add them to the static folder and serve them as static files.

sapegin added a commit to styleguidist/react-styleguidist that referenced this issue Jun 10, 2020
Docusaurus doesn't let us to access these files otherwise.

facebook/docusaurus#2833 (comment)

Ref #1601
@lex111
Copy link
Contributor

lex111 commented Nov 17, 2020

In order to reduce staled issues, I am closing this issue, but feel free to open it again if needed.

@lex111 lex111 closed this as completed Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

No branches or pull requests

3 participants