Skip to content

Make docs/README.md compatible with Swift DocC #67893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Aug 11, 2023

This adds necessary metadata and updates links to Markdown documents in README.md. Remaining .rst documents still need to be converted to Markdown for linking to such documents to work. In the meantime we can convert those to absolute links to GitHub I reckon, but I haven't done that in this PR.

You need to have the latest Swift development snapshot installed for rendering to work without renaming the docs directory to docs.docc. A preview of this documentation can be generated with this command on macOS

~/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2023-08-10-a.xctoolchain/usr/bin/docc preview \
  --ide-console-output --allow-arbitrary-catalog-directories docs

If you're ok with renaming docs to docs.docc locally just for preview purposes, you can generate a preview with this command:

xcrun docc preview docs.docc

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov requested a review from shahmishal August 25, 2023 16:57
@Kyle-Ye
Copy link
Contributor

Kyle-Ye commented Sep 6, 2023

Will we provide an online version later after this PR?

@MaxDesiatov MaxDesiatov force-pushed the maxd/docc-compiler-docs branch 2 times, most recently from a5cb7cd to 775edd6 Compare October 20, 2023 18:48
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov force-pushed the maxd/docc-compiler-docs branch 2 times, most recently from 69b0529 to 41b0e88 Compare October 20, 2023 19:01
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test macos

@MaxDesiatov MaxDesiatov force-pushed the maxd/docc-compiler-docs branch from 41b0e88 to 174b23f Compare October 22, 2023 09:47
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test macos

@MaxDesiatov MaxDesiatov force-pushed the maxd/docc-compiler-docs branch from 174b23f to e2c2397 Compare October 23, 2023 09:15
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test macos

This adds necessary metadata and updates links to Markdown documents in `README.md`. Remaining `.rst` documents still need to be converted to Markdown for linking to work.
Looks like older DocC versions require `Info.plist` to be present, especially in directories with `.docc` extension.
@MaxDesiatov MaxDesiatov force-pushed the maxd/docc-compiler-docs branch from e2c2397 to 984870e Compare October 24, 2023 20:25
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test macos

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants