Skip to content

[skip changelog] Remove comment that breaks gRPC documentation structure #2080

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

Merged
merged 1 commit into from
Feb 21, 2023
Merged

[skip changelog] Remove comment that breaks gRPC documentation structure #2080

merged 1 commit into from
Feb 21, 2023

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Feb 20, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • [N/A] Tests for the changes have been added (for bug fixes / features)
  • [N/A] Docs have been added / updated (for bug fixes / features)
  • [N/A] UPGRADING.md has been updated with a migration guide (for breaking changes)

What kind of change does this PR introduce?

Documentation fix

What is the current behavior?

The "gPRC Reference" section of the documentation website is automatically generated from the code and comments in the project's Protocol Buffers files. The documentation is automatically structured according to the structure of the Protocol Buffers code using heading levels, and the documentation website uses these heading levels to generate a table of contents to allow easy navigation of the documentation and an overview of its structure.

The generation happens in two steps:

Protocol Buffers -> Markdown -> HTML

A comment in a Protocol Buffers file included a decorative underline formed from a series of - characters. This happens to be markup for an H2 heading in the Markdown language. This caused an inadvertent creation of an inappropriate H2 heading named "BOOTSTRAP COMMANDS", which resulted in the documentation having the following incorrect structure:

  • Protocol Documentation
    • [...]
    • cc/arduino/cli/commands/v1/board.proto
      • [...]
    • cc/arduino/cli/commands/v1/commands.proto
      • [...]
      • ArduinoCoreService
    • BOOTSTRAP COMMANDS
      • <documentation for cc.arduino.cli.commands.v1.ArduinoCoreService>
    • cc/arduino/cli/commands/v1/common.proto
      • [...]
    • [...]

image

What is the new behavior?

The problematic decorative comment is removed to produce the correct documentation structure:

  • Protocol Documentation
    • [...]
    • cc/arduino/cli/commands/v1/board.proto
      • [...]
    • cc/arduino/cli/commands/v1/commands.proto
      • [...]
      • ArduinoCoreService
        • <documentation for cc.arduino.cli.commands.v1.ArduinoCoreService>
    • cc/arduino/cli/commands/v1/common.proto
      • [...]
    • [...]

Does this PR introduce a breaking change, and is titled accordingly?

No breaking change.

Other information

I also removed the "BOOTSTRAP COMMANDS" comment because I don't see any value in it and it introduced unpleasant caps lock prose content into the documentation.

The "gPRC Reference" section of the documentation website is automatically generated from the code and comments in the
project's Protocol Buffers files. The documentation is automatically structured according to the structure of the
Protocol Buffers code using heading levels, and the documentation website uses these heading levels to generate a table
of contents to allow easy navigation of the documentation and an overview of its structure.

The generation happens in two steps:

Protocol Buffers -> Markdown -> HTML

A comment in a Protocol Buffers file included a decorative underline formed from a series of `-` characters. This
happens to be markup for an H2 heading in the Markup language. This caused an inadvertent creation of an inappropriate
heading named "BOOTSTRAP COMMANDS", which resulted in the documentation having the following incorrect structure:

- Protocol Documentation
  - [...]
  - cc/arduino/cli/commands/v1/board.proto
    - [...]
  - cc/arduino/cli/commands/v1/commands.proto
    - [...]
    - ArduinoCoreService
  - BOOTSTRAP COMMANDS
    - <List of cc.arduino.cli.commands.v1.ArduinoCoreService methods>
  - cc/arduino/cli/commands/v1/common.proto
    - [...]
  - [...]

Instead of the correct structure:

- Protocol Documentation
  - [...]
  - cc/arduino/cli/commands/v1/board.proto
    - [...]
  - cc/arduino/cli/commands/v1/commands.proto
    - [...]
    - ArduinoCoreService
      - <List of cc.arduino.cli.commands.v1.ArduinoCoreService methods>
  - cc/arduino/cli/commands/v1/common.proto
    - [...]
  - [...]

This could be corrected by removing only the pointless decorative comment, leaving the "BOOTSTRAP COMMANDS" comment, but
I don't see any value in that comment and it introduced unpleasant caps lock prose content into the documentation so I
removed it as well.
@per1234 per1234 added topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project labels Feb 20, 2023
@per1234 per1234 self-assigned this Feb 20, 2023
@per1234 per1234 merged commit c73f735 into arduino:master Feb 21, 2023
@per1234 per1234 deleted the fix-grpc-doc-structure branch February 21, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants