Skip to content

Fix building docs locally - #32

Open
KnutAM wants to merge 3 commits into
kimauth:mainfrom
KnutAM:local_docs
Open

Fix building docs locally#32
KnutAM wants to merge 3 commits into
kimauth:mainfrom
KnutAM:local_docs

Conversation

@KnutAM

@KnutAM KnutAM commented Jun 24, 2021

Copy link
Copy Markdown
Collaborator

Following discourse I ran
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' [1]
This adds MaterialModels to the docs/Project.toml. Then, running
julia --project=docs/ docs/make.jl [2]
builds the documentation locally just fine.

So I guess [1] is only required the first time to generate the Manifest (and download packages if required) and [2] each time one wants to build the docs?

We could also include a compat section for documenter as in Fredrik's post above I guess...
(Sorry about the back and forth, did not realize [compat] was already there from before...)

Comment thread docs/Project.toml

[compat]
Documenter = "0.26" No newline at end of file
Documenter = "0.26"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Documenter = "0.26"
Documenter = "0.27"

@kimauth

kimauth commented Aug 13, 2021

Copy link
Copy Markdown
Owner

I think for building the docs locally you still need to make sure you add MaterialModels with a path (either local, i.e. ".." or to this github repo), for me it complained that the package is not a registered package when I tried to instantiate.

@codecov-commenter

codecov-commenter commented Jun 27, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

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

Successfully merging this pull request may close these issues.

3 participants