Skip to content
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

Add docs generation script. #47

Merged
merged 2 commits into from
Nov 20, 2020
Merged

Add docs generation script. #47

merged 2 commits into from
Nov 20, 2020

Conversation

Lukasa
Copy link
Collaborator

@Lukasa Lukasa commented Nov 20, 2020

Motivation:

Documentation is a real help when using a project, we should be
generating it.

Modifications:

  • Ported docs script from SwiftNIO.

Result:

We can provide API documentation.

@Lukasa Lukasa added the patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1) label Nov 20, 2020
@Lukasa Lukasa requested a review from tomerd November 20, 2020 08:47
Motivation:

Documentation is a real help when using a project, we should be
generating it.

Modifications:

- Ported docs script from SwiftNIO.

Result:

We can provide API documentation.
@@ -26,7 +26,7 @@ RUN mkdir -p $HOME/.tools
RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile

# script to allow mapping framepointers on linux (until part of the toolchain)
RUN wget -q https://raw.githubusercontent.com/apple/swift/master/utils/symbolicate-linux-fatal -O $HOME/.tools/symbolicate-linux-fatal
RUN wget -q https://raw.githubusercontent.com/apple/swift/main/utils/symbolicate-linux-fatal -O $HOME/.tools/symbolicate-linux-fatal
RUN chmod 755 $HOME/.tools/symbolicate-linux-fatal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can probably just get rid of this all-together, we do not need it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

my_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
root_path="$my_path/.."
version=$(git describe --abbrev=0 --tags || echo "0.0.0")
modules=( NIOSSH )
Copy link
Member

@tomerd tomerd Nov 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see there are a f ew other modules in the repo, is including only NIOSSH in the docs intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the other modules are binaries.

Copy link
Member

@tomerd tomerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, but a couple of questions

@Lukasa Lukasa merged commit 4ddde05 into apple:main Nov 20, 2020
@Lukasa Lukasa deleted the cb-add-docs-script branch November 20, 2020 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants