docs: Fix capitalization mistakes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-05-09 22:02:14 -07:00
committed by Tim Abbott
parent 41e8872b0f
commit 544bbd5398
161 changed files with 610 additions and 611 deletions

View File

@@ -25,7 +25,7 @@ check_header() {
if ! diff -ur /tmp/http-headers-processed "$success_header_file"; then
set +x
echo
echo "FAILURE: The HTTP Headers returned from loading the homepage on the server do not match the contents of tools/ci/success-http-headers.template.txt. Typically, this means that the server threw a 500 when trying to load the homepage."
echo "FAILURE: The HTTP headers returned from loading the homepage on the server do not match the contents of tools/ci/success-http-headers.template.txt. Typically, this means that the server threw a 500 when trying to load the homepage."
echo "Displaying the contents of the server's error log:"
echo
cat /var/log/zulip/errors.log

View File

@@ -40,7 +40,7 @@ ROBOTSTXT_OBEY = False
# Disable cookies (enabled by default)
# COOKIES_ENABLED = False
# Disable Telnet Console (enabled by default)
# Disable telnet console (enabled by default)
# TELNETCONSOLE_ENABLED = False
# Override the default request headers:

View File

@@ -13,10 +13,10 @@ from scrapy.utils.url import url_has_any_extension
from twisted.python.failure import Failure
EXCLUDED_DOMAINS = [
# Returns 429 Rate-Limited Errors
# Returns 429 rate-limiting errors
"github.com",
"gist.github.com",
# Returns 503 Errors
# Returns 503 errors
"www.amazon.com",
"gitlab.com",
]

View File

@@ -247,7 +247,7 @@ Your remote Zulip dev server has been created!
print(
"See [Developing remotely](https://zulip.readthedocs.io/en/latest/development/remote.html) "
"for tips on using the remote dev instance and "
"[Git & GitHub Guide](https://zulip.readthedocs.io/en/latest/git/index.html) "
"[Git & GitHub guide](https://zulip.readthedocs.io/en/latest/git/index.html) "
"to learn how to use Git with Zulip.\n"
)
print(

View File

@@ -29,7 +29,6 @@ IGNORED_PHRASES = [
r"ID",
r"IDs",
r"IP",
r"JIRA",
r"JSON",
r"Kerberos",
r"LDAP",

View File

@@ -234,7 +234,7 @@ def validate_indent_html(fn: str, fix: bool) -> int:
# Since we successfully fixed the issues, we exit with status 0
return 0
print(
"Invalid Indentation detected in file: "
"Invalid indentation detected in file: "
f"{fn}\nDiff for the file against expected indented file:",
flush=True,
)

View File

@@ -164,7 +164,7 @@ def tokenize(text: str) -> List[Token]:
continue
except TokenizationException as e:
raise FormattedException(
f'''{e.message} at Line {state.line} Col {state.col}:"{e.line_content}"''',
f'''{e.message} at line {state.line} col {state.col}:"{e.line_content}"''',
)
line_span = len(s.split("\n"))
@@ -401,9 +401,9 @@ def get_html_tag(text: str, i: int) -> str:
end += 1
if quote_count % 2 != 0:
if unclosed_end:
raise TokenizationException("Unbalanced Quotes", text[i:unclosed_end])
raise TokenizationException("Unbalanced quotes", text[i:unclosed_end])
else:
raise TokenizationException("Unbalanced Quotes", text[i : end + 1])
raise TokenizationException("Unbalanced quotes", text[i : end + 1])
if end == len(text) or text[end] != ">":
raise TokenizationException('Tag missing ">"', text[i : end + 1])
s = text[i : end + 1]

View File

@@ -180,7 +180,7 @@ def run() -> None:
[*semgrep_command, "--lang=python"],
["py"],
fix_arg="--autofix",
description="Syntactic Grep (semgrep) Code Search Tool (config: ./tools/semgrep.yml)",
description="Syntactic grep (semgrep) code search tool (config: ./tools/semgrep.yml)",
)
linter_config.external_linter(

View File

@@ -533,7 +533,7 @@ html_rules: List["Rule"] = [
*prose_style_rules,
{
"pattern": "subject|SUBJECT",
"exclude": {"templates/zerver/email.html"},
"exclude": {"templates/zerver/email.html", "zerver/tests/fixtures/email"},
"exclude_pattern": "email subject",
"description": "avoid subject in templates",
"good_lines": ["topic_name"],

View File

@@ -19,7 +19,7 @@ elif [[ "$MODE" == "test" ]]; then
DBNAME=zulip_test
STATUS_FILE_NAME=migration_status_test
else
echo "Usage Instructions"
echo "Usage instructions"
echo "Run with either no arguments (sets up devel db for local deploy--zulip with user zulip)"
echo "or specify 'test'"
exit 1
@@ -52,7 +52,7 @@ DBNAME_BASE=${DBNAME}_base
if ! pg_isready -U "$POSTGRES_USER" -q; then
set +x
echo
echo 'ERROR: PostgreSQL Server is not running! Ensure the service is enabled.'
echo 'ERROR: PostgreSQL server is not running! Ensure the service is enabled.'
# shellcheck disable=SC2016
echo 'ERROR: Try `sudo service postgresql start`?'
echo "ERROR: You can easily test if you fixed it using: pg_isready -U \$POSTGRES_USER"

View File

@@ -56,7 +56,7 @@ def check_worker_launch(run_dev: "subprocess.Popen[str]") -> bool:
if __name__ == "__main__":
print("\nStarting Development Server")
print("\nStarting development server")
args = [f"{TOOLS_DIR}/run-dev.py"]
run_dev = subprocess.Popen(
args,

View File

@@ -9,7 +9,7 @@
<body>
<div id="intro">
<p id="intro">
<span id="hello_{{ message }}">Hello World!!</span>
<span id="hello_{{ message }}">Hello world!!</span>
This is a test file for checking correct working of duplicate id detection module.
</p>
</div>

View File

@@ -9,7 +9,7 @@
<body>
<div id="below_navbar">
<p id="intro">
<span id="hello_{{ message }}">Hello World!!</span>
<span id="hello_{{ message }}">Hello world!!</span>
This is a test file for checking correct working of duplicate id detection module.
</p>
</div>

View File

@@ -106,7 +106,7 @@ class ParserTest(unittest.TestCase):
{{# foo
"""
self._assert_validate_error(
'''Tag missing "}}" at Line 2 Col 13:"{{# foo
'''Tag missing "}}" at line 2 col 13:"{{# foo
"''',
text=my_html,
)
@@ -115,14 +115,14 @@ class ParserTest(unittest.TestCase):
my_html = """
{{# foo }
"""
self._assert_validate_error('Tag missing "}}" at Line 2 Col 13:"{{# foo }\n"', text=my_html)
self._assert_validate_error('Tag missing "}}" at line 2 col 13:"{{# foo }\n"', text=my_html)
def test_validate_incomplete_django_tag_1(self) -> None:
my_html = """
{% foo
"""
self._assert_validate_error(
'''Tag missing "%}" at Line 2 Col 13:"{% foo
'''Tag missing "%}" at line 2 col 13:"{% foo
"''',
text=my_html,
)
@@ -131,14 +131,14 @@ class ParserTest(unittest.TestCase):
my_html = """
{% foo %
"""
self._assert_validate_error('Tag missing "%}" at Line 2 Col 13:"{% foo %\n"', text=my_html)
self._assert_validate_error('Tag missing "%}" at line 2 col 13:"{% foo %\n"', text=my_html)
def test_validate_incomplete_html_tag_1(self) -> None:
my_html = """
<b
"""
self._assert_validate_error(
'''Tag missing ">" at Line 2 Col 13:"<b
'''Tag missing ">" at line 2 col 13:"<b
"''',
text=my_html,
)
@@ -151,12 +151,12 @@ class ParserTest(unittest.TestCase):
<a href=""
"""
self._assert_validate_error(
'''Tag missing ">" at Line 2 Col 13:"<a href=""
'''Tag missing ">" at line 2 col 13:"<a href=""
"''',
text=my_html1,
)
self._assert_validate_error(
'''Unbalanced Quotes at Line 2 Col 13:"<a href="
'''Unbalanced quotes at line 2 col 13:"<a href="
"''',
text=my_html,
)