-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add linting for our documentation and fix existing errors.
- Loading branch information
1 parent
e3b3374
commit b9b6509
Showing
16 changed files
with
415 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# Copyright 2019 Square Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# Configuring rules: | ||
# https://github.com/markdownlint/markdownlint/blob/master/docs/creating_styles.md | ||
# Rule list: | ||
# https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md | ||
|
||
# Need to explicitly run all rules, so the per-rule configs below aren't used as an allowlist. | ||
all | ||
|
||
# Increase default line length from 80 to 100. | ||
rule 'MD013', :line_length => 100, :code_blocks => false, :tables => false | ||
|
||
# Enable inline HTML. | ||
exclude_rule 'MD033' | ||
|
||
# Allow paragraphs that consiste entirely of emphasized text. | ||
exclude_rule 'MD036' | ||
|
||
# Allow trailing question marks in headers. | ||
rule 'MD026', :punctuation => '.,;:!' | ||
|
||
# Markdownlint can't handle mkdocs' code block tab syntax, so disable code block formatting. | ||
exclude_rule 'MD040' | ||
exclude_rule 'MD046' | ||
|
||
# Don't care about blank lines surround fenced code blocks. | ||
exclude_rule 'MD031' | ||
|
||
# Allow raw URLs. | ||
exclude_rule 'MD034' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Open Source Code of Conduct | |
|
||
At Square, we are committed to contributing to the open source community and simplifying the process | ||
of releasing and managing open source software. We’ve seen incredible support and enthusiasm from | ||
thousands of people who have already contributed to our projects — and we want to ensure our community | ||
thousands of people who have already contributed to our projects — and we want to ensure ourcommunity | ||
continues to be truly open for everyone. | ||
|
||
This code of conduct outlines our expectations for participants, as well as steps to reporting | ||
|
@@ -12,28 +12,28 @@ expect our code of conduct to be honored. | |
|
||
Square’s open source community strives to: | ||
|
||
* **Be open**: We invite anyone to participate in any aspect of our projects. Our community is | ||
open, and any responsibility can be carried by a contributor who demonstrates the required | ||
capacity and competence. | ||
* **Be open**: We invite anyone to participate in any aspect of our projects. Our community is | ||
open, and any responsibility can be carried by a contributor who demonstrates the required | ||
capacity and competence. | ||
|
||
* **Be considerate**: People use our work, and we depend on the work of others. Consider users and | ||
colleagues before taking action. For example, changes to code, infrastructure, policy, and | ||
documentation may negatively impact others. | ||
* **Be considerate**: People use our work, and we depend on the work of others. Consider users and | ||
colleagues before taking action. For example, changes to code, infrastructure, policy, and | ||
documentation may negatively impact others. | ||
|
||
* **Be respectful**: We expect people to work together to resolve conflict, assume good intentions, | ||
and act with empathy. Do not turn disagreements into personal attacks. | ||
* **Be respectful**: We expect people to work together to resolve conflict, assume good intentions, | ||
and act with empathy. Do not turn disagreements into personal attacks. | ||
|
||
* **Be collaborative**: Collaboration reduces redundancy and improves the quality of our work. We | ||
strive for transparency within our open source community, and we work closely with upstream | ||
developers and others in the free software community to coordinate our efforts. | ||
* **Be collaborative**: Collaboration reduces redundancy and improves the quality of our work. We | ||
strive for transparency within our open source community, and we work closely with upstream | ||
developers and others in the free software community to coordinate our efforts. | ||
|
||
* **Be pragmatic**: Questions are encouraged and should be asked early in the process to avoid | ||
problems later. Be thoughtful and considerate when seeking out the appropriate forum for your | ||
questions. Those who are asked should be responsive and helpful. | ||
* **Be pragmatic**: Questions are encouraged and should be asked early in the process to avoid | ||
problems later. Be thoughtful and considerate when seeking out the appropriate forum for your | ||
questions. Those who are asked should be responsive and helpful. | ||
|
||
* **Step down considerately**: Members of every project come and go. When somebody leaves or | ||
disengages from the project, they should make it known and take the proper steps to ensure that | ||
others can pick up where they left off. | ||
* **Step down considerately**: Members of every project come and go. When somebody leaves or | ||
disengages from the project, they should make it known and take the proper steps to ensure that | ||
others can pick up where they left off. | ||
|
||
This code is not exhaustive or complete. It serves to distill our common understanding of a | ||
collaborative, shared environment, and goals. We expect it to be followed in spirit as much as in | ||
|
@@ -78,12 +78,12 @@ discretion. | |
|
||
In your report please include: | ||
|
||
* Your contact information. | ||
* Names (real, nicknames, or pseudonyms) of any individuals involved. If there are additional | ||
witnesses, please include them as well. | ||
* Your account of what occurred, and if you believe the incident is ongoing. If there is a publicly | ||
available record (e.g. a mailing list archive or a public IRC logger), please include a link. | ||
* Any additional information that may be helpful. | ||
* Your contact information. | ||
* Names (real, nicknames, or pseudonyms) of any individuals involved. If there are additional | ||
witnesses, please include them as well. | ||
* Your account of what occurred, and if you believe the incident is ongoing. If there is a publicly | ||
available record (e.g. a mailing list archive or a public IRC logger), please include a link. | ||
* Any additional information that may be helpful. | ||
|
||
After filing a report, a representative from the Square Code of Conduct committee will contact you | ||
personally. The committee will then review the incident, follow up with any additional questions, | ||
|
@@ -93,7 +93,6 @@ Anyone asked to stop unacceptable behavior is expected to comply immediately. If | |
engages in unacceptable behavior, the Square Code of Conduct committee may take any action they deem | ||
appropriate, up to and including a permanent ban from all of Square spaces without warning. | ||
|
||
|
||
[codeofconduct_at]: mailto:[email protected] | ||
[twitter_coc]: https://github.com/twitter/code-of-conduct/blob/master/code-of-conduct.md | ||
[ubuntu_coc]: https://ubuntu.com/community/code-of-conduct | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.