Document library crates only in mach doc (#32429)

* Document library crates only in mach doc

* Fix typo

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Ngo Iok Ui (Wu Yu Wei) 2024-06-02 15:59:44 +09:00 committed by GitHub
parent dd2de1836b
commit 2ca6c4b52b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -246,6 +246,9 @@ class PostBuildCommands(CommandBase):
if not path.exists(docs):
os.makedirs(docs)
# Document library crates to avoid package name conflict between severoshell
# and libservo. Besides, main.rs in servoshell is just a stub.
params.insert(0, "--lib")
# Documentation build errors shouldn't cause the entire build to fail. This
# prevents issues with dependencies from breaking our documentation build,
# with the downside that it hides documentation issues.