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

Trim line length in the documentation/examples for the new theme #5479

Merged
merged 4 commits into from
Jun 4, 2024

Conversation

JanuszL
Copy link
Contributor

@JanuszL JanuszL commented May 22, 2024

  • the new nvidia-theme recommends the line length of the code snippets
    80 characters, not 100 as used in DALI
  • fixes external source documentation formatting

Category:

Other (e.g. Documentation, Tests, Configuration)

Description:

  • the new nvidia-theme recommends the line length of the code snippets
    80 characters, not 100 as used in DALI
  • fixes external source documentation formatting

Additional information:

Affected modules and functionalities:

  • documentation in docs directory
  • examples
  • couple of C++ files with the operators docs that include code snippets

Key points relevant for the review:

  • NA

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

@JanuszL JanuszL marked this pull request as draft May 22, 2024 22:32
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@JanuszL
Copy link
Contributor Author

JanuszL commented May 22, 2024

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15241185]: BUILD STARTED

@JanuszL
Copy link
Contributor Author

JanuszL commented May 22, 2024

!build

Comment on lines +124 to +130
doc_table += formater.format(
"Function",
"Device support",
"Short description",
op_name_max_len=op_name_max_len,
c=" ",
)

Check warning

Code scanning / CodeQL

Unused argument in a formatting call Warning documentation

Too many arguments for string format. Format
"{{:{{c}}<{{op_name_max_len}}}} {{:{{c}}^48}} {{:{{c}}<150}}"
requires only 2, but 3 are provided.
Comment on lines +181 to +183
doc_table += formater.format(
"", "", "", op_name_max_len=op_name_max_len, c="="
)

Check warning

Code scanning / CodeQL

Unused argument in a formatting call Warning documentation

Too many arguments for string format. Format
"{{:{{c}}<{{op_name_max_len}}}} {{:{{c}}^48}} {{:{{c}}<150}}"
requires only 2, but 3 are provided.
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15241299]: BUILD STARTED

@JanuszL
Copy link
Contributor Author

JanuszL commented May 22, 2024

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15241422]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15241422]: BUILD FAILED

@JanuszL
Copy link
Contributor Author

JanuszL commented May 23, 2024

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15252677]: BUILD STARTED

@JanuszL JanuszL closed this May 23, 2024
@JanuszL JanuszL reopened this May 23, 2024
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15252677]: BUILD FAILED

@JanuszL
Copy link
Contributor Author

JanuszL commented May 23, 2024

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15268625]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15268625]: BUILD FAILED

@JanuszL
Copy link
Contributor Author

JanuszL commented May 24, 2024

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15282670]: BUILD STARTED

@JanuszL JanuszL marked this pull request as ready for review May 24, 2024 09:30
@JanuszL JanuszL changed the title Trim line lenght in the docuemntation/examples for the new theme Trim line length in the documentation/examples for the new theme Jun 2, 2024
@JanuszL
Copy link
Contributor Author

JanuszL commented Jun 3, 2024

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15525264]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15525264]: BUILD FAILED

@JanuszL
Copy link
Contributor Author

JanuszL commented Jun 3, 2024

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15528182]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15528182]: BUILD PASSED

@JanuszL
Copy link
Contributor Author

JanuszL commented Jun 3, 2024

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15530558]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15530558]: BUILD PASSED

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
@JanuszL
Copy link
Contributor Author

JanuszL commented Jun 4, 2024

!build

@mzient mzient assigned mzient and unassigned banasraf Jun 4, 2024
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15559824]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15559824]: BUILD PASSED

@JanuszL JanuszL merged commit ea2eff0 into NVIDIA:main Jun 4, 2024
6 checks passed
@JanuszL JanuszL deleted the adjust_lenght_docs_2 branch June 4, 2024 19:40
JanuszL added a commit to JanuszL/DALI that referenced this pull request Jun 7, 2024
- excludes NVIDIA#5479

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
JanuszL added a commit that referenced this pull request Jun 10, 2024
- excludes #5479

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
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.

None yet

6 participants