Skip to content

angular.io guide content contains many documentation lint errors #47179

Closed

Description

@bob-watson

Description

When the guide content of angular.io is analyzed by the documentation lint tool, ~3/4 of the topic files in the guide directory contain lint errors that should be corrected as soon as practical.

Removing the lint errors from the documentation helps improve the documentation's readability by correcting the current content. After the documentation topics are free of linting errors, we can incorporate documentation linting into the CI/CD process to maintain clean documentation content going forward.

Note that PRs for fixes related to this issue do not need to include every topic with a lint error. PRs for individual or several files are preferred.

How to help

  1. Review Contributing to Angular
  2. Install the documentation linter on your local development system and IDE
  3. Make sure you can build the angular.io site on your development system
  4. Find and fix a topic (repeat as often as you'd like)
    1. Open a topic from angular/angular/aio/content/guide
    2. Review the commit message format to use when committing your changes
    3. Review and correct the problems identified by the documentation linter
    4. Save and commit your updated topic.
  5. Submit a PR with your revisions

What is the affected URL?

many

Please provide the steps to reproduce the issue

With the documentation linter installed in an IDE, open a guide topic and notice the problems that the linter identifies.

Please provide the expected behavior vs the actual behavior you encountered

The documentation source code should not have any documentation linter errors, and ideally, it should not have any problems at all.

Please provide a screenshot if possible

N/A

Please provide the exception or error you saw

N/A

Is this a browser-specific issue? If so, please specify the device, browser, and version.

Not browser specific.

Activity

  1. added
    open for contributions
    good first issue
    P2
    on Aug 17, 2022
  2. modified the milestone: Backlog on Aug 17, 2022
  3. PabloG6 commented on Aug 19, 2022

    @PabloG6

    Is anyone working on this right now? Would love to give it a shot.

  4. jessicajaniuk commented on Aug 19, 2022

    @jessicajaniuk
    Contributor

    @PabloG6 Please do! Thank you!

  5. bilelfeki commented on Aug 21, 2022

    @bilelfeki

    Hello, I am working on this issue, I am trying to build the angular.io on my development system.
    I found an Error while running this command yarn docs-watch.

    Cannot find module 'C:/Users/bilel/Desktop/angular/angular-1/aio/content/cli-src/node_modules/@angular/cli/package.json'

    Any help? Thanks!

  6. gkalpak commented on Aug 22, 2022

    @gkalpak
    Member

    @bilelfeki, have you run yarn setup (inside the aio/ directory) first?

  7. bilelfeki commented on Aug 22, 2022

    @bilelfeki

    @gkalpak, I am grateful for your support.

    Yes, I run yarn setup and yarn start.
    I received the message compiled successfully but
    yarn docs-watch throw the ERROR.

    Maybe the problem is related to my yarn version.

    When I run ng v, this is what I get :
    Angular CLI: 14.0.5
    Node: 16.16.0
    Package Manager: yarn 1.22.17

    Could you tell me about the version that you are using? Thanks.

  8. gkalpak commented on Aug 22, 2022

    @gkalpak
    Member

    @bilelfeki, the versions look fine.

    The error looks strange if yarn setup completed successfully. Is there an aio/content/cli-src/node_modules/ directory? Does it contain an @angular/cli/ directory?

    It might be worth trying clearing the yarn cache first (with yarn cache clean) and then running yarn setup again.

  9. bilelfeki commented on Aug 22, 2022

    @bilelfeki

    @gkalpak it was my mistake.

    And The error looks really strange because I am using nvm(node version manager) and then my cmd should run as an administrator so what I did is I run yarn setup as an admin but yarn docs-watch as a simple user.

    Thanks a lot for your help, you give me the opportunity to stick to the problem and resolve it.

  10. 3 remaining items

  11. thisloke commented on Nov 15, 2022

    @thisloke

    Hello folks!
    I'm facing the same issues in more places inside the docs, and sometimes i don't really know how to solve it:

    image

    I will define this problem as LCSDQI (List of Comma Separated Double Quote Items) to reference faster

    "A", "B", "C" and "D"

    I'm trying to figure out one solution:

    • Defining a custom MD component to handle the LCSDQI
    • Modify the rule of Vale
      Commas and periods go inside quotation marks. UI text should be bold and data entered by a user should be monospace.Vale[Angular.Google_Quotes](https://developers.google.com/style/quotation-marks)
      handling this case
    • Use another character instead double quote " when we need to highlight some word. (We're using backtick ` for code keywords, we can use another one for these).

    Any suggestion? What you will do in this case?

    Thanks

  12. harshsingla-devops commented on Dec 24, 2022

    @harshsingla-devops

    I would like to contribute to this one as well.

  13. pjpscriv commented on Jan 30, 2023

    @pjpscriv
    Contributor

    @lokenxo re: the LCSDQI I reckon the simplest solution would be to add an Angular.Google_Quotes exception:

    <!-- vale Angular.Google_Quotes= NO -->
    
    // content..
    
    <!-- vale Angular.Google_Quotes= NO -->

    It strikes me as a rule that's pretty prone to exceptions. Even within the Google Style Guide immediately after it's defined it calls out exceptions for keywords or string literals: https://developers.google.com/style/quotation-marks
    image

    One other possible solution could be to remove the rule entirely for the Angular Docs? Maybe it's the case that in this context the rule gives more false errors than legitimate errors.

  14. KAWALMEET-SINGH commented on Mar 9, 2023

    @KAWALMEET-SINGH

    i want to work on this issue please assign me ?

  15. masterboxer commented on Sep 24, 2023

    @masterboxer

    Would like to work on this! I am starting now.

  16. twerske commented on Sep 25, 2023

    @twerske
    Contributor

    We will be changing the linter in an upcoming version, in preparation for this change I'm closing this issue - for interested contributors, thank you for all your interest and hard work! We'll have a blog post on Angular.io's blog in early November about how to continue docs contributions!

  17. angular-automatic-lock-bot commented on Oct 26, 2023

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  18. locked and limited conversation to collaborators on Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2good first issueopen for contributions

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions