Skip to content

Conversation

@amstewart
Copy link
Collaborator

Summary

  • Fixup minor RST layout issues.
  • Use inline literal markup for inline code and applications, rather than bold.
  • Refer to IPKs and DEBs, instead of .ipks and .debs in most places.
  • Reflow prose to line-break on sentence ends, for easier diffing.
  • Minor content changes for clarity.

Testing

  • Ran make html locally and manually validated that the opkg tutorials look better and the links work.

This comment was marked as outdated.

* Fixup minor RST layout issues.
* Use inline literal markup for inline code and applications, rather
  than bold.
* Refer to IPKs and DEBs, instead of .ipks and .debs in most places.
* Reflow prose to line-break on sentence ends, for easier diffing.
* Minor content changes for clarity.

Signed-off-by: Alex Stewart <alex.stewart@emerson.com>
@amstewart
Copy link
Collaborator Author

Patch V2

  • Address review feedback.

@amstewart amstewart requested a review from Copilot September 8, 2025 20:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR cleans up and improves the RST documentation for opkg tutorials by addressing minor formatting issues and improving readability. The changes focus on:

  • Replacing bold formatting with inline literal markup for code elements and applications
  • Changing references from ".ipks" and ".debs" to "IPKs" and "DEBs" for consistency
  • Reflowing prose to break on sentence boundaries for better diff readability
  • Minor content clarifications and link reference improvements

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
docs/source/opkg/opkg_intro.rst Updates formatting, terminology, and prose flow for the basic opkg tutorial
docs/source/opkg/dkms_opkg.rst Applies similar formatting and terminology improvements to the DKMS-based kernel module tutorial

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +83 to +85
:helloworld.c: The C source code
:CONTROL: The control file for the package
:debian-binary: The debian-binary file
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The colon-based syntax is incorrect for RST field lists. This should use proper RST field list syntax with indented content or use a different format like definition lists.

Suggested change
:helloworld.c: The C source code
:CONTROL: The control file for the package
:debian-binary: The debian-binary file
helloworld.c
The C source code
CONTROL
The control file for the package
debian-binary
The debian-binary file

Copilot uses AI. Check for mistakes.
Comment on lines +200 to +206
:preinst: The ``preinst`` script will be run before the installation of the package files.

postinst
~~~~~~~~
:postinst: The ``postinst`` script will be run upon finishing the installation of the package files.

The postinst script will be run upon finishing the installation of the
package files.
:prerm: The ``prerm`` script will be run by opkg before any files are removed during package removal.

premrm
~~~~~~
:postrm: The ``postrm`` script will be run by opkg after files are removed during package removal.
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The colon-based syntax is incorrect for RST field lists. This should use proper RST field list syntax with indented content or use a different format like definition lists.

Copilot uses AI. Check for mistakes.
Comment on lines +200 to +206
:preinst: The ``preinst`` script will be run before the installation of the package files.

postinst
~~~~~~~~
:postinst: The ``postinst`` script will be run upon finishing the installation of the package files.

The postinst script will be run upon finishing the installation of the
package files.
:prerm: The ``prerm`` script will be run by opkg before any files are removed during package removal.

premrm
~~~~~~
:postrm: The ``postrm`` script will be run by opkg after files are removed during package removal.
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The colon-based syntax is incorrect for RST field lists. This should use proper RST field list syntax with indented content or use a different format like definition lists.

Copilot uses AI. Check for mistakes.
Comment on lines +200 to +206
:preinst: The ``preinst`` script will be run before the installation of the package files.

postinst
~~~~~~~~
:postinst: The ``postinst`` script will be run upon finishing the installation of the package files.

The postinst script will be run upon finishing the installation of the
package files.
:prerm: The ``prerm`` script will be run by opkg before any files are removed during package removal.

premrm
~~~~~~
:postrm: The ``postrm`` script will be run by opkg after files are removed during package removal.
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The colon-based syntax is incorrect for RST field lists. This should use proper RST field list syntax with indented content or use a different format like definition lists.

Copilot uses AI. Check for mistakes.
Comment on lines +200 to +206
:preinst: The ``preinst`` script will be run before the installation of the package files.

postinst
~~~~~~~~
:postinst: The ``postinst`` script will be run upon finishing the installation of the package files.

The postinst script will be run upon finishing the installation of the
package files.
:prerm: The ``prerm`` script will be run by opkg before any files are removed during package removal.

premrm
~~~~~~
:postrm: The ``postrm`` script will be run by opkg after files are removed during package removal.
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The colon-based syntax is incorrect for RST field lists. This should use proper RST field list syntax with indented content or use a different format like definition lists.

Copilot uses AI. Check for mistakes.
.. code:: bash
gcc o hello helloworld.c
gcc -o hello helloworld.c
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The command uses a single dash (-) instead of double dash (--) for the output flag. It should be gcc -o hello helloworld.c which is correct, but the original had an en-dash (–) which was properly corrected to a regular hyphen (-).

Copilot uses AI. Check for mistakes.
If problems are encountered, posting to the `NI Linux Real-Time
Community <https://forums.ni.com/t5/NI-Linux-Real-Time/ct-p/7013>`__ or
other Linux discussion boards is the recommended way to get further
guidance.
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

Line 22 contains an orphaned word 'guidance.' that appears to be leftover from incomplete editing. This should be removed or the sentence should be completed properly.

Suggested change
guidance.

Copilot uses AI. Check for mistakes.
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.

1 participant