Skip to content

Conversation

emmurphy1
Copy link
Collaborator

@emmurphy1 emmurphy1 commented Mar 29, 2021

This continues the work done in https://github.com/redhat-documentation/modular-docs/pull/123/files. It resolves issue 116 and issue 99.

@emmurphy1 emmurphy1 changed the title issue-116-emily updated snippets sectionIssue #116: Guideline against "pseudo modules" is problematic WIP: issue-116-emily #116: Guideline against "pseudo modules" is problematic Mar 29, 2021
Copy link
Contributor

@sterobin sterobin left a comment

Choose a reason for hiding this comment

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

@emmurphy1 I agree with Mike's and Nicole's existing comments and have added my +1s where applicable. Once those are addressed, good with me.


//* A bulleted list of links to other material closely related to the contents of the concept module.
.Procedure
. Create the text snippet Asciidoc file and store it in your snippets folder.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'll lick a fingertip and then reach out for the third rail...vanilla Asciidoctor is perfectly happy with a snippets folder. Does the tooling that we're not supposed to be overly focused on also support a snippets folder?

Other than mental harm, is it problematic to put the text frags in a modules folder?--I get it that we just stated it's not a module, then we're possibly advising to co-locate with the modules.

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 Publishing-Platform-That-Shall-Not-Be-Named needs to have fragments in a single location. This location is added to the YAML file.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd swear that the file now includes mention of a "fragments" folder, but I did not checkout the PR. I share that in case it was an overzealous change from "snippets" to "fragments." I'm good with whatever you propose.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well, I was trying to be consistent.

@emmurphy1
Copy link
Collaborator Author

@mikemckiernan and @ncbaratta I have updated with your comments, or explained. Please review when you have time.


= Text Fragments

A text fragment is a small section of text that is stored in an Asciidoc file. Text fragments contain content that is resused in multiple modules or assemblies, for example:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
A text fragment is a small section of text that is stored in an Asciidoc file. Text fragments contain content that is resused in multiple modules or assemblies, for example:
A text fragment is a small section of text that is stored in an AsciiDoc file. Text fragments contain content that is resused in multiple modules or assemblies, for example:

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Applied

* A step or series of steps in a procedure
* A disclaimer, for example, for technology preview or beta releases

NOTE: A text fragment is not a module. The Asciidoc file that contains the text fragment cannot contain any other information. A module cannot contain an include statement for another module.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The AsciiDoc file that contains the text fragment cannot contain any other information.

Why? AsciiDoc allows for inclusion from specific lines in another file. A common use case is to have a single file with multiple fragments/snippets. (I'm not exactly fond of snippets, but if used, then why arbitrarily restrict AsciiDoc functionality?)

Suggested change
NOTE: A text fragment is not a module. The Asciidoc file that contains the text fragment cannot contain any other information. A module cannot contain an include statement for another module.
NOTE: A text fragment is not a module. The AsciiDoc file that contains the text fragment cannot contain any other information. A module cannot contain an include statement for another module.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point @rkratky . Removed.

NOTE: A text fragment is not a module. The Asciidoc file that contains the text fragment cannot contain any other information. A module cannot contain an include statement for another module.

.Procedure
. Create the text fragment Asciidoc file and store it in your fragments folder.
Copy link
Collaborator

Choose a reason for hiding this comment

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

store it in your fragments folder

I understand that this is good practice, but do we need to call it out. In the end, it's up to the writer (or the writing team) how they wish to store their .adoc files.

Suggested change
. Create the text fragment Asciidoc file and store it in your fragments folder.
. Create the text fragment AsciiDoc file and store it in your fragments folder.

Copy link
Contributor

Choose a reason for hiding this comment

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

I imagine that readers will appreciate the suggested directory name and many will adopt it for the benefits of consistency. Rule breakers do whatever they want anyway.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I made it a suggestion and put it in a note.

Copy link
Contributor

@mikemckiernan mikemckiernan left a comment

Choose a reason for hiding this comment

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

/lgtm the proper way.

* A step or series of steps in a procedure
* A disclaimer, for example, for technology preview or beta releases

NOTE: A text fragment is not a module. The Asciidoc file that contains the text fragment cannot contain any other information. A module cannot contain an include statement for another module.
Copy link
Contributor

@Preeticp Preeticp Apr 14, 2021

Choose a reason for hiding this comment

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

A module cannot contain an include statement for another module.

Should this be: A text fragment cannot contain an include statement for another module.? That A module cannot contain an include statement for another module has been captured in the Creating modules section.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wow, that is a good point! I've just simplified the whole idea.

@emmurphy1
Copy link
Collaborator Author

@rkratky @Preeticp @ncbaratta I've revised the text fragments section. Would you mind looking over again and approving if you can?

@emmurphy1
Copy link
Collaborator Author

@rkratky @ncbaratta @rolfedh @fbolton @fbolton @sterobin @Preeticp @mikemckiernan @yzimmerm I think I have addressed everyone's comments but there have been a few changes so would you mind looking over one last time? Also, I am now second-guessing myself and wondering if we should be talking about 'snippets' instead of 'fragments'? Ideas?

@mikemckiernan
Copy link
Contributor

It still lgtm. My preference for fragments over snippets is to sidestep possible confusion between a text file with limited text content and the feature in Atom that is named snippets and inserts small pieces of text.

@ncbaratta
Copy link
Member

I've been saying 'snippets' but seriously I have no preference.

Copy link
Contributor

@sterobin sterobin left a comment

Choose a reason for hiding this comment

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

@emmurphy1 Good with me.

@@ -13,6 +13,8 @@ Follow these guidelines to create different types of modules:
* xref:creating-procedure-modules[Procedure Module]
* xref:reference-module-guidelines[Reference Module]

A module should not contain another module. However a module can contain a text snippet. For information about text snippets, see xref:using-text-snippets[Using Text Snippets].
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@sterobin can you see why this xref isn't working?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed. Thanks Stetson.

@emmurphy1 emmurphy1 merged commit 9d4a7bd into master Jun 25, 2021
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.

9 participants