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

NotFound [Error]: Not found: / #502

Open
kovalexal opened this issue May 23, 2024 · 4 comments
Open

NotFound [Error]: Not found: / #502

kovalexal opened this issue May 23, 2024 · 4 comments

Comments

@kovalexal
Copy link

Hi doc-builder team!
Thanks for your great library!

I am trying to use your library to build docs for my own project, but I am facing some difficulties.
I have created a file structure for docs similar to what HuggingFace libraries have (_toctree.yml, etc.).

However, when I run doc-builder preview LIBRARY_NAME PATH_TO_DOCS and open web browser, I get a "NotFound [Error]: Not found: /" and web browser shows left side panel with the content from _toctree.yml, but in the center there is a page with 404 error.

At first, I thought that it might be related to some files missing (misconfiguration from my side), so I decided to try and preview docs from peft library and I get the same error when I run doc-builder preview peft /workspaces/peft/docs/source

image image

Then I found issue #456 where they suggested using an older version of doc-builder, so I tried using 0.4.0 and the commits mentioned in that issue and nothing works for me. Do you have any idea how to fix this?

I used the Dockerfile from the peft project and installed nodejs like this:

curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh
bash /tmp/nodesource_setup.sh
apt install nodejs -y
@jadechoghari
Copy link

Hey there, it worked on this commit: 3de0a0e

@kovalexal
Copy link
Author

Hi @jadechoghari! Thanks for the suggestion, unfortunately it still doesn't work on the mentioned commit.

I used this specific Dockerfile and used the following commands to install everything:

curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
bash nodesource_setup.sh
apt update && apt install gcc g++ make cmake nodejs -y

pip install watchdog
pip install git+https://github.com/huggingface/doc-builder.git@3de0a0e9f824fc50e78c873732ef4a4ebaeb005b
doc-builder preview peft /workspaces/peft/docs/source/

I still get the same error.

@jadechoghari
Copy link

@kovalexal , I just reverted to the above commit and worked for me. (exact same error).
weird.

@kovalexal
Copy link
Author

@jadechoghari Am I correct that you are getting the same error as me?

If not, in what env are you running your commands? Is it inside a docker container or bare system (what OS are you using), what is your node version?

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

No branches or pull requests

2 participants