You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@graphar.apache.org by "ywh555hhh (via GitHub)" <gi...@apache.org> on 2024/05/31 06:30:57 UTC

[PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

ywh555hhh opened a new pull request, #508:
URL: https://github.com/apache/incubator-graphar/pull/508

   Improve CI flow, for docs.yml, enable markdownlint and typos
   
   <!--
   Thanks for contributing to GraphAr.
   If this is your first pull request you can find detailed information on [CONTRIBUTING.md](https://github.com/apache/graphar/blob/main/CONTRIBUTING.md)
   
   The Apache GraphAr (incubating) community has restrictions on the naming of pr title. You can find instructions in
   [CONTRIBUTING.md](https://github.com/apache/graphar/blob/main/CONTRIBUTING.md#title) too.
   -->
   
   ### Reason for this PR
   <!-- 
   Why are you proposing this change? If this is already tracked in an issue, please link to the issue here.
   Explaining clearly why this change is beneficial is important for the reviewers to understand the context.
   -->
   to fix issue #499 
   
   ### What changes are included in this PR?
   <!-- 
   There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
   -->
   enable markdownlint and typos in docs.yml
   
   ### Are these changes tested?
   <!--
   We typically require tests for all PRs in order to:
   1. Prevent the code from being accidentally broken by subsequent changes
   2. Serve as another way to document the expected behavior of the code
   
   If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
   -->
   no local test
   
   ### Are there any user-facing changes?
   <!--
   If there are user-facing changes then we may require documentation to be updated before approving the PR.
   -->
   no
   
   <!--
   If there are any breaking changes to public APIs, please uncomment the line below and explain which changes are breaking.
   -->
   <!-- **BREAKING CHANGE: <description>** -->
   
   <!--
   Please uncomment the line below (and provide explanation) if the changes fix either
   (a) a security vulnerability,
   (b) a bug that caused incorrect or invalid data to be produced, or
   (c) a bug that causes a crash (even when the API contract is upheld). 
   We use this to highlight fixes to issues that may affect users without their knowledge. For this reason, fixing bugs that cause errors don't count, since those are usually obvious.
   -->
   <!-- **Critical Fix: <description>** -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

Posted by "yecol (via GitHub)" <gi...@apache.org>.
yecol commented on PR #508:
URL: https://github.com/apache/incubator-graphar/pull/508#issuecomment-2271376923

   Cool ~ Enhanced CI to improve the quality of our documentations! LGTM. :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

Posted by "acezen (via GitHub)" <gi...@apache.org>.
acezen commented on code in PR #508:
URL: https://github.com/apache/incubator-graphar/pull/508#discussion_r1643696475


##########
docs/.markdownlint.yaml:
##########
@@ -0,0 +1,8 @@
+# 忽略 MD013,因为文档需要较长的行以保持代码示例的完整性

Review Comment:
   It's better to use english as document language



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

Posted by "ywh555hhh (via GitHub)" <gi...@apache.org>.
ywh555hhh commented on PR #508:
URL: https://github.com/apache/incubator-graphar/pull/508#issuecomment-2276942700

   > the testing submodule should not be modified
   
   testing submodule is no longer affected


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

Posted by "SemyonSinchenko (via GitHub)" <gi...@apache.org>.
SemyonSinchenko commented on PR #508:
URL: https://github.com/apache/incubator-graphar/pull/508#issuecomment-2141367562

   May we also make a script for do that before commit? For example, in folder `./dev` something like `fix_spelling.sh`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

Posted by "ywh555hhh (via GitHub)" <gi...@apache.org>.
ywh555hhh commented on PR #508:
URL: https://github.com/apache/incubator-graphar/pull/508#issuecomment-2159693167

   When using Markdownlint for document formatting checks, I encountered some issues that could not be automatically resolved, mainly involving a large number of MD013 (line length is too long) and MD033 (inline HTML) issues, as well as one MD025 (multiple top-level headings) issue.
   
   For example, I encountered MD013 and MD033 issues on line 110 of the `specification/format.md` file, and an MD025 issue in the `libraries/cpp/getting-started.md` file.
   
   To resolve these issues, I have configured Markdownlint to ignore these three types of issues in the `.markdownlint.yaml` configuration file. The specific configuration is as follows:
   
   ```yaml
   # Ignore MD013, as the document requires longer lines to maintain the integrity of code examples
   MD013: false
   
   # Ignore MD033, as inline HTML is necessary in some cases, such as specific formatting requirements
   MD033: false
   
   # Ignore MD025, as the document structure requires multiple top-level headings to reflect different sections or parts
   MD025: false
   ```
   
   I believe this is a reasonable solution because these issues are mainly caused by the mismatch between our document format and the default rules of Markdownlint. By customizing our Markdownlint configuration, we can ensure that it better adapts to our document structure and formatting needs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

Posted by "acezen (via GitHub)" <gi...@apache.org>.
acezen merged PR #508:
URL: https://github.com/apache/incubator-graphar/pull/508


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

Posted by "ywh555hhh (via GitHub)" <gi...@apache.org>.
ywh555hhh commented on PR #508:
URL: https://github.com/apache/incubator-graphar/pull/508#issuecomment-2141447757

    I'll try to fix it automatically with markdownlint


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

Posted by "acezen (via GitHub)" <gi...@apache.org>.
acezen commented on PR #508:
URL: https://github.com/apache/incubator-graphar/pull/508#issuecomment-2272508427

   Hi, @ywh555hhh, I have a question, why this change affect to the testing submodule?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [PR] feat(CI):enable markdownlint and typos in docs.yml [incubator-graphar]

Posted by "ywh555hhh (via GitHub)" <gi...@apache.org>.
ywh555hhh commented on PR #508:
URL: https://github.com/apache/incubator-graphar/pull/508#issuecomment-2276942246

   > Hi, @ywh555hhh, I have a question, why this change affect to the testing submodule?
   
   Seems I ran some tool locally incorrectly


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org