Giter Club home page Giter Club logo

Comments (8)

MichaelHatherly avatar MichaelHatherly commented on May 22, 2024

By default deploydocs will deploy on the Linux nightly travis build bot. Looks as though Bio.jl is failing on nightly, so what you can do is change the deploydocs call to

deploydocs(
    repo  = "github.com/BioJulia/Bio.jl.git",
    julia = "0.4",
)

and that should do the trick I should think.

from documenter.jl.

MichaelHatherly avatar MichaelHatherly commented on May 22, 2024

Also, to change which OS you want to deploy the docs from you can use the osname keyword

deploydocs(
    repo   = "github.com/BioJulia/Bio.jl.git",
    julia  = "0.4",
    osname = "osx",
)

These are mentioned briefly in the docs, but perhaps a more prominent section in the hosting documentation page would be useful too.

from documenter.jl.

TransGirlCodes avatar TransGirlCodes commented on May 22, 2024

I've changed the deploydocs function to use 0.4 and OS X, but it still tells me it's skipping docs deployment.

from documenter.jl.

MichaelHatherly avatar MichaelHatherly commented on May 22, 2024

Locally deploydocs will always skip deploying the docs, currently it's only designed to work on travis. On the 0.4 travis build for Bio.jl make.jl is throwing an error since Lapidary isn't installed. Until the package is registered you'll need to add a Pkg.clone call to install it. Something like

after_success:
  - julia -e 'cd(Pkg.dir("Bio")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
  - julia -e 'cd(Pkg.dir("Bio")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
  - julia -e 'cd(Pkg.dir("Bio")); Pkg.clone("https://github.com/MichaelHatherly/Lapidary.jl"); include(joinpath("docs", "make.jl"))'

should work.

from documenter.jl.

TransGirlCodes avatar TransGirlCodes commented on May 22, 2024

Ok it's now showing that it is going through the build and deployment process. But it errors:

ERROR: LoadError: could not spawn `mkdocs build`: no such file or directory (ENOENT)
 in _jl_spawn at process.jl:262
 in anonymous at process.jl:415
 in setup_stdio at /Users/travis/julia/lib/julia/sys.dylib
 in __spawn#58__ at /Users/travis/julia/lib/julia/sys.dylib
 in run at /Users/travis/julia/lib/julia/sys.dylib
 in anonymous at /Users/travis/.julia/v0.4/Lapidary/src/Lapidary.jl:298
 in anonymous at /Users/travis/.julia/v0.4/Lapidary/src/Lapidary.jl:329
 in cd at /Users/travis/julia/lib/julia/sys.dylib
 in deploydocs at /Users/travis/.julia/v0.4/Lapidary/src/Lapidary.jl:368
 in include at /Users/travis/julia/lib/julia/sys.dylib
 in include_from_node1 at /Users/travis/julia/lib/julia/sys.dylib
 in process_options at /Users/travis/julia/lib/julia/sys.dylib
 in _start at /Users/travis/julia/lib/julia/sys.dylib
while loading /Users/travis/.julia/v0.4/Bio/docs/make.jl, in expression starting on line 4

Which maybe something to do with my mkdocs.yml, although I think I left most of it as is in the docs. Lapidary, puts stuff in the docs/build folder, and mkdocs.yml has 'build' set for it's docs_dir.

from documenter.jl.

MichaelHatherly avatar MichaelHatherly commented on May 22, 2024

Does mkdocs build work locally?

The error looks like mkdocs isn't being found. Perhaps pip on OSX installs mkdocs somewhere other than .local/bin. Not sure where that would be. Perhaps stick to deploying from Linux rather than OSX for the moment.

from documenter.jl.

TransGirlCodes avatar TransGirlCodes commented on May 22, 2024

That's awesome, it working now. Thank you!

from documenter.jl.

MichaelHatherly avatar MichaelHatherly commented on May 22, 2024

Excellent, glad to hear that!

from documenter.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.