-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Remove nested code blocks from string docs #171
Conversation
MANIFEST.md was being created such that rendering was broken. In particular it contained lots of nested code blocks of yaml inside puppet examples and the 2nd half of the document was not being rendered at all. Luckily redering yaml as puppet code does not look bad.
|
If there's a good way to render yaml examples happy to learn.. |
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.
Looks like these are a good improvements. Still room for improvement, but I don't mind merging this. Let me know if you want to continue cleaning up or merge it.
| @@ -55,30 +55,23 @@ | |||
| # Name of the utils package, e.g. 'yum-utils', or 'dnf-utils'. | |||
| # | |||
| # @example Enable management of the default repos for a supported OS: | |||
| # ```yaml | |||
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've seen it elsewhere that this can be useful. Maybe it's useful to file a feature request for YAML highlighting for examples.
| @@ -3,30 +3,30 @@ | |||
| # `%{EPOCH}:%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}`. As a Regex, it | |||
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.
This type can use a @summary since the summary doesn't render. Was already the case, but maybe good to fix while you're at it.
| # type Yum::PackageDistTag = Regexp[/[0-9a-zZ-Z_\*]+/] | ||
| # | ||
| # # BuildArch: Any string from the list at https://github.com/rpm-software-management/rpm/blob/master/rpmrc.in. Strings are roughly listed from most common to least common to improve performance. | ||
| # BuildArch: Any string from the list at https://github.com/rpm-software-management/rpm/blob/master/rpmrc.in. Strings are roughly listed from most common to least common to improve performance. | ||
| # type Yum::PackageBuildArch = Regexp[/noarch|x86_64|i386|arm|ppc64|ppc64le|sparc64|ia64|alpha|ip|m68k|mips|mipsel|mk68k|mint|ppc|rs6000|s390|s390x|sh|sparc|xtensa/] | ||
| # | ||
| # @note Each field may contain wildcard characters (`*`), but the |
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.
Looks like @note is not supported
| @@ -3,30 +3,30 @@ | |||
| # `%{EPOCH}:%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}`. As a Regex, it | |||
| # breaks down into five distinct parts, plus the seperators. | |||
| # | |||
| # # EPOCH: An unsigned integer | |||
| # EPOCH: An unsigned integer | |||
| # type Yum::PackageEpoch = Regexp[/[0-9]\*]+/] | |||
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.
This line doesn't render that well.
Pull Request (PR) description
REFERENCE.md was being created such that rendering was broken. In particular
it contained lots of nested code blocks of yaml inside puppet examples and
the 2nd half of the document was not being rendered at all.
Luckily rendering yaml as puppet code does not look bad.
This Pull Request (PR) fixes the following issues