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

sphinx extension: display default values #284

Merged
merged 1 commit into from
Apr 4, 2015

Conversation

MikaYuoadas
Copy link

When a default value exists for a schema attribute, display it instead of just
showing it is optional.

temp += nodes.inline(
text='(default: %s) ' % default)
else:
temp += nodes.inline(text='(optional) ')
Copy link
Contributor

Choose a reason for hiding this comment

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

wow, this makes this line too long, we should maybe refactor that a bit ;)

@almet
Copy link
Contributor

almet commented Apr 2, 2015

Otherwise that looks good to me, thanks!

When a default value exists for a schema attribute, display it instead of just
showing it is optional.
@MikaYuoadas
Copy link
Author

Ok, I edited the commit to make it pep8 compliant.

almet added a commit that referenced this pull request Apr 4, 2015
sphinx extension: display default values
@almet almet merged commit aa44663 into Cornices:master Apr 4, 2015
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.

2 participants