Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

make docs on Mac - scala docs failure #10858

@aaronmarkham

Description

@aaronmarkham

Description

Making docs on a Mac is broken if you use the latest version of scala, maven, and sbt.

Minimum reproducible example

On a Mac, run make docs.
Unrelated, but this actually fails unless you do make first.

Then you'll see you need some dependencies like in the setup_docs_ubuntu script and then follow up with these to make sure you're getting the system installs for Mac (you must have Sphinx 1.5.6 just like CI):

pip install sphinx==1.5.6
brew install maven
brew upgrade maven
brew install sbt
brew install scala
make
make docs

That's pretty much what I had to do to get the docs to get even close to building on the Mac.
But, then it will fail when it tries to move some scala docs files that don't exist.

What have you tried to solve it?

I sort of solved it, but it isn't something I think I can commit because it might break what's happening in CI on Ubuntu.

  1. Remove index and package.html from mxdoc.py line 89
  2. Run make docs again and it's fine. Even better than fine, because the docs seem to be much more modern and usable than the current docs.

Comments

If you get stuck building docs locally with a Mac, do what I did in step 1 above.
I'd like to see how to upgrade the Ubuntu scaladocs in CI to what I'm seeing on the Mac. CI docker setup uses no version info when installing the scala deps, so it's not obvious at the moment. Acquiring a different version of scala deps would need to be thoroughly tested since it could break any number of other things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions