purescript / pursuit

Website for hosting and searching PureScript API documentation
https://pursuit.purescript.org/
Other
170 stars 47 forks source link

Make it offline capable #369

Open adius opened 6 years ago

adius commented 6 years ago

I would like to be able to read the pursuit documentation when I'm offline (e.g. train). So it would be cool to be able to easily host it on a laptop. There are, however, some issues at the moment, that need to be fixed to make it work (and easier to set up):

For checking my work in progress it would also be cool to:

hdgarrood commented 6 years ago

I think what you're getting at is something worthwhile and which I'd be interested in, but this really needs a more detailed proposal with context, what you're trying to do, why each of these things is necessary, etc.

adius commented 6 years ago

@hdgarrood I extended the description. Anything missing?

hdgarrood commented 6 years ago

Where are we using CDNs? Also we do have prebuilt binaries; check the "releases" tab.

Are you aware of pulp docs -- --format html? If that doesn't cover what you need, can you explain why not?

adius commented 6 years ago

Where are we using CDNs

Also we do have prebuilt binaries; check the "releases" tab.

Good point!

pulp docs -- --format html

Would b a little cumbersome to run it for each package on pursuit, right? Furthermore I also would like to use the search engine of Pursuit offline.

adius commented 6 years ago

Also: The pre-built binaries only work on Linux. And even then I get following error (run in docker): ./pursuit: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory

hdgarrood commented 6 years ago

If you run pulp docs -- --format html in your project directory you’ll get pursuit style html docs for everything in your project, including dependencies.

hdgarrood commented 6 years ago

That wouldn’t address the searching issue though, that’s a good point.

hdgarrood commented 6 years ago

The google analytics snippet hasn't actually ever been used AFAIK so I'm happy to just remove that (along with the config option which toggles it off or on). I don't think I'd want to have it on in production anyway. I'd also be happy to receive a PR which removes the use of google's fonts API in favour of hosting the fonts locally, provided that we comply with the license terms properly (Roboto and Roboto Mono are Apache-2.0 so this shouldn't be too hard).

sevillaarvin commented 3 years ago

Is there a proper way now to run pursuit offline? I tried cloning the project, installing haskell and following the readme but I'm getting some errors. I'm not yet familiar with haskell though so I couldn't resolve them.

equt commented 3 years ago

FYI, spago provides the docs subcommand to render a project-local Pursuit. See the Generate documentation for my project section.