-
Notifications
You must be signed in to change notification settings - Fork 440
Update readme #363
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
Update readme #363
Conversation
43fdeec
to
82d6ec9
Compare
a3afe4e
to
97812db
Compare
I would actually prefer to go the other way because I think the readme in The Documentation folder would include documents to
The examples folder would contain
The main |
Agree on that it can be hard to find and a single readme will become to large and messy. What about using DocC?
I think that contributing should be in the main readme as for me it is more "repository" related documentation on how to contribute, where SwiftPM and SwiftSyntax embedding is more documentation for how to use it.
It would be pretty cool if we could make the CI actually test/compile the examples. 💪
And then I think the contribution, license, issues and so on is added in the main readme. |
9b1c4d8
to
578ef92
Compare
Exploring to use DocC would definitely be interesting but there’s a non-trivial deployment story we need to solve. We always want the latest documentation for the current main branch. But that means that we need to do one of the following
I might have missed an option here because I’m not familiar with DocC but I would suggest that for now we stick with markdown files. As a separate task, we could consider improving the doc comments of SwiftSyntax to generate better documentation which adopters can build themselves by invoking
I disagree here. This repo is the main entry point to whoever wants to use SwiftSyntax as a Swift package dependency and I expect those to be the vast majority compared to those who contribute to the repository. So I think the documentation should primarily target adopters of SwiftSyntax. Contributors are already slightly more committed and I think we can expect them to click a link to view the “Contributing” documentation.
I’m not entirely sure if I understand what you mean here but my idea is that the main readme is fairly lightweight. IMO “Contributing” and “License” should just be links. If the documentation to write bug reports it might fit into the main readme. |
cafc4ff
to
1d40ebd
Compare
Let's wait with DocC then, and getting started with some basic documentation then.
I have tried to make folder structure so it's easy to navigate to the correct folder.
I have tried to structure what I have been thinking of. How to setup the CI to test the examples, I don't know 🤷♂️ |
3f7c4e6
to
7a59f00
Compare
8c46f0b
to
d6d732d
Compare
Documentation/SwiftSyntax/README.md
Outdated
> Note: SwiftSyntax is still in development, and the API is not guaranteed to | ||
> be stable. It's subject to change without warning. | ||
|
||
## Some Example Users |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could put those example users in the Examples folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have moved those, and called I Some Examples Usages
(I think the Users is a typo)
d6d732d
to
05f3a0d
Compare
05f3a0d
to
055c807
Compare
055c807
to
089e98c
Compare
95fe618
to
afc0203
Compare
afc0203
to
3db552d
Compare
@swift-ci Please test |
In swiftlang#363 we forgot to remove this
I was think if we should
SwiftSyntax
specific info from root readme into a new readme inside SwiftSyntax source, just like SwiftSyntaxBuilder.The same for SwiftSyntaxParser.
Then keep the root readme to things that is common for all sources?
Like how to get started developing, report bugs, license etc?