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

error on apidoc version 0.50.1: no such file or directory, lstat 'template/src/css/main.css' #5

Open
wziwen opened this issue Oct 27, 2021 · 13 comments

Comments

@wziwen
Copy link

wziwen commented Oct 27, 2021

nice theme!
I use the newest apidoc (version 0.50.1) and run the generate command then get the message below:

error: ENOENT: no such file or directory, lstat 'template/src/css/main.css'
[error] apidoc encountered an error during documentation generation!

I notice the demo use apidoc version 0.28.1, so i reinstall it and the message goes away.

@nomorelogic
Copy link

nomorelogic commented Oct 30, 2021

hi same errore here
is it planned to fix this theme for version 0.50.1 of apidoc?
thanks

@mohamedashrafothman
Copy link

same here, any plans for this? it's a great theme

@Cundalf
Copy link

Cundalf commented Nov 16, 2021

Same here :(
error: ENOENT: no such file or directory, lstat 'template\src\css\main.css'

@canonex
Copy link

canonex commented Nov 29, 2021

It seems that the structure of the template has changed in the latest versions of ApiDoc:

From the code it seems that a similar structure is required:

  • fonts
  • img
  • src
  • index.html

Thank you,
Riccardo

@fabioselau077
Copy link

same problem

@medchkir
Copy link

same problem

@FC5570
Copy link

FC5570 commented Jun 15, 2022

@ahmed-dinar

@voyager3m
Copy link

same problem :(

@joaquinicolas
Copy link

Try using version 0.29.0

@everdevFR
Copy link

Hello @ahmed-dinar,

We are at the end of December 2022 and the problem is still present.

Do you know how to fix it?

@MOTA9100
Copy link

MOTA9100 commented Mar 1, 2023

Same here @ahmed-dinar

@maietta
Copy link

maietta commented Mar 1, 2023

I just now switched to the version 0.29.0 in order to compile the template. Turns out documenting an API from source code is a lot harder than it should be. No wonder people are not doing it as they should!

Anyway, the fix seems to be installing using:

npm i -g [email protected] (globally)
npm i [email protected] (or locally to your project)

I might fork and try to improve this template, but I don't know if I quite understand it just yet.

@seohyunjun
Copy link

@maietta Thank you, it works!

if macOS user

brew uninstall apidoc

npm i -g [email protected]
npm i [email protected]

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