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

Remove nested code blocks from string docs #171

Merged
merged 1 commit into from
May 12, 2020

Conversation

traylenator
Copy link

@traylenator traylenator commented May 12, 2020

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

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.
@traylenator traylenator added the docs Improvements or additions to documentation label May 12, 2020
@traylenator
Copy link
Author

If there's a good way to render yaml examples happy to learn..

Copy link
Member

@ekohl ekohl left a 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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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]\*]+/]
Copy link
Member

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.

@traylenator
Copy link
Author

@ekohl
I think I'd rather merge as is, I did not read the contents of the type.
Was just trying to fix the total render failure.
The yum::versionlock type is essentially deprecated by #169 as well so it will vanish eventually
though not for several years of course.

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

Successfully merging this pull request may close these issues.

2 participants