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 documentation_style to with short and full options #716

Merged
merged 1 commit into from Nov 2, 2021

Conversation

seanmonstar
Copy link
Contributor

When the "short" option is used, only the first line of the docs is output for each item.

The motivation for this change is to encourage writing longer docs with examples, while still keeping the header file more concise. The header file top can include a link to the full published docs instead.

@seanmonstar
Copy link
Contributor Author

@emilio sorry to spring a PR without an issue first... what do you think of the feature?

@seanmonstar
Copy link
Contributor Author

Anything I can do to help with the load at all?

@emilio
Copy link
Collaborator

emilio commented Nov 2, 2021

Sorry, it's been pretty weird times for me lately so haven't been able to do much non-work stuff, looking now

Copy link
Collaborator

@emilio emilio 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 to me, thanks.

@@ -76,7 +76,12 @@ impl Source for Documentation {
_ => (),
}

for line in &self.doc_comment {
let end = match config.documentation_length {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we handle it also in the cython case just for completeness? Should be trivial moving this a few lines above but if you don't have the time I'm happy to do it.

@emilio emilio merged commit 0e3f9bd into mozilla:master Nov 2, 2021
@emilio
Copy link
Collaborator

emilio commented Nov 2, 2021

I can fix cython for you before publishing, thanks, and sorry again for the massive lag.

@emilio
Copy link
Collaborator

emilio commented Nov 2, 2021

a1694cd fixes cython

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

Successfully merging this pull request may close these issues.

None yet

2 participants