mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
refactor: Rename bugdown to markdown in misc. files.
This commit is part of series of commits aimed at renaming bugdown to markdown.
This commit is contained in:
@@ -193,7 +193,7 @@ have untracked files in your Zulip checkout safely). So if you get a
|
|||||||
the existing codebase:
|
the existing codebase:
|
||||||
|
|
||||||
```
|
```
|
||||||
mypy | zerver/models.py:1234: note: Import of 'zerver.lib.bugdown_wrappers' ignored
|
mypy | zerver/models.py:1234: note: Import of 'zerver.lib.markdown_wrappers' ignored
|
||||||
mypy | zerver/models.py:1234: note: (Using --follow-imports=error, module not passed on command line)
|
mypy | zerver/models.py:1234: note: (Using --follow-imports=error, module not passed on command line)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -145,9 +145,10 @@ exports.update_elements = (content) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Moment throws a large deprecation warning when it has to fallback
|
// Moment throws a large deprecation warning when it has to
|
||||||
// to the Date() constructor. We needn't worry here and can let bugdown
|
// fallback to the Date() constructor. This isn't really a
|
||||||
// handle any dates that moment misses.
|
// problem for us except in local echo, as the backend always
|
||||||
|
// uses a format that ensures that is unnecessary.
|
||||||
moment.suppressDeprecationWarnings = true;
|
moment.suppressDeprecationWarnings = true;
|
||||||
const timestamp = moment(time_str);
|
const timestamp = moment(time_str);
|
||||||
if (timestamp.isValid()) {
|
if (timestamp.isValid()) {
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ EOF
|
|||||||
|
|
||||||
./tools/update-prod-static
|
./tools/update-prod-static
|
||||||
|
|
||||||
# We don't need duplicate copies of emoji with hashed paths, and they would break bugdown
|
# We don't need duplicate copies of emoji with hashed paths, and they would break markdown
|
||||||
find prod-static/serve/generated/emoji/images/emoji/ -regex '.*\.[0-9a-f]+\.png' -delete
|
find prod-static/serve/generated/emoji/images/emoji/ -regex '.*\.[0-9a-f]+\.png' -delete
|
||||||
|
|
||||||
echo "$GITID" > build_id
|
echo "$GITID" > build_id
|
||||||
|
|||||||
@@ -318,7 +318,8 @@ def setup_old_emoji_farm(cache_path: str,
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def generate_map_files(cache_path: str, emoji_catalog: Dict[str, List[str]]) -> None:
|
def generate_map_files(cache_path: str, emoji_catalog: Dict[str, List[str]]) -> None:
|
||||||
# This function generates the data file consumed by webapp, mobile apps, bugdown etc.
|
# This function generates the main data file about emoji that are
|
||||||
|
# consumed by the webapp, mobile apps, markdown processor, etc.
|
||||||
names = emoji_names_for_picker(EMOJI_NAME_MAPS)
|
names = emoji_names_for_picker(EMOJI_NAME_MAPS)
|
||||||
codepoint_to_name = generate_codepoint_to_name_map(EMOJI_NAME_MAPS)
|
codepoint_to_name = generate_codepoint_to_name_map(EMOJI_NAME_MAPS)
|
||||||
name_to_codepoint = generate_name_to_codepoint_map(EMOJI_NAME_MAPS)
|
name_to_codepoint = generate_name_to_codepoint_map(EMOJI_NAME_MAPS)
|
||||||
|
|||||||
Reference in New Issue
Block a user