-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fa356c1
Showing
14,527 changed files
with
1,661,987 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: b04b245800c5327c44239bba5c012d65 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+39.8 KB
...trees/meta/monitoring/traffic/runbooks/identifying-and-blocking-traffic-anomalies.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+99.7 KB
.doctrees/projects/proposals/3d_model_support/20220221-project_proposal.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+19.4 KB
...oposals/additional_search_views/20230424-project_proposal_additional_search_views.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+66.1 KB
.doctrees/projects/proposals/analytics/20221006-implementation_plan_frontend.doctree
Binary file not shown.
Binary file added
BIN
+26.7 KB
.doctrees/projects/proposals/analytics/20230307-backend_service.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10.4 KB
...als/core_user_interface_improvement/20230314-project_proposal_core_ui_improvement.doctree
Binary file not shown.
Binary file added
BIN
+3.3 KB
.doctrees/projects/proposals/core_user_interface_improvement/index.doctree
Binary file not shown.
Binary file added
BIN
+35.1 KB
.doctrees/projects/proposals/document_all_media_properties/20230307-project_proposal.doctree
Binary file not shown.
Binary file added
BIN
+55.8 KB
...nt_all_media_properties/20230426-implementation_plan_documenting_media_properties.doctree
Binary file not shown.
Binary file added
BIN
+3.45 KB
.doctrees/projects/proposals/document_all_media_properties/index.doctree
Binary file not shown.
Binary file added
BIN
+3.39 KB
.doctrees/projects/proposals/document_all_media_properties/samples/index.doctree
Binary file not shown.
Binary file added
BIN
+39.9 KB
...ojects/proposals/document_all_media_properties/samples/openverse_media_properties.doctree
Binary file not shown.
Binary file added
BIN
+20.9 KB
.../projects/proposals/document_all_media_properties/samples/sample_media_properties.doctree
Binary file not shown.
Binary file added
BIN
+6.71 KB
.doctrees/projects/proposals/document_all_media_properties/samples/sample_postamble.doctree
Binary file not shown.
Binary file added
BIN
+4.54 KB
.doctrees/projects/proposals/document_all_media_properties/samples/sample_preamble.doctree
Binary file not shown.
Binary file added
BIN
+59.3 KB
.doctrees/projects/proposals/feature_flags/20220309-project_proposal.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+16.6 KB
.doctrees/projects/proposals/frontend_ui_state_cookie/20220218-project_proposal.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+141 KB
.doctrees/projects/proposals/monitoring/20220307-project_proposal.doctree
Binary file not shown.
Binary file added
BIN
+125 KB
.doctrees/projects/proposals/monitoring/20230606_implementation_plan_ecs_alarms.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+12.6 KB
.doctrees/projects/proposals/monitoring/run_book_samples/stable_run_book_sample.doctree
Binary file not shown.
Binary file added
BIN
+18.7 KB
.doctrees/projects/proposals/monitoring/run_book_samples/unstable_run_book_sample.doctree
Binary file not shown.
Binary file added
BIN
+91.9 KB
.doctrees/projects/proposals/monorepo/20221124-project_proposal.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+16 KB
...es/projects/proposals/nuxt_3_migration/20230604-project_proposal_nuxt_3_migration.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+25.4 KB
...osals/popularity_optimizations/20230406-project_proposal_popularity_optimizations.doctree
Binary file not shown.
Binary file added
BIN
+113 KB
...ls/popularity_optimizations/20230420-implementation_plan_popularity_optimizations.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+34.6 KB
...osals/search_relevancy_sandbox/20230331-project_proposal_search_relevancy_sandbox.doctree
Binary file not shown.
Binary file added
BIN
+77.3 KB
...als/search_relevancy_sandbox/20230406-implementation_plan_update_staging_database.doctree
Binary file not shown.
Binary file added
BIN
+77.3 KB
...arch_relevancy_sandbox/20230518-implementation_plan_staging_index_rapid_iteration.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+65 KB
...s/trust_and_safety/20230109-trust_and_safety_preliminary_overview_and_exploration.doctree
Binary file not shown.
Binary file added
BIN
+81.7 KB
...ety/content_report_moderation/20230411-project_proposal_content_report_moderation.doctree
Binary file not shown.
Binary file added
BIN
+76.3 KB
..._safety/content_report_moderation/20230517-implementation_plan_mature_copy_change.doctree
Binary file not shown.
Binary file added
BIN
+3.58 KB
.doctrees/projects/proposals/trust_and_safety/content_report_moderation/index.doctree
Binary file not shown.
Binary file added
BIN
+44.9 KB
...cting_sensitive_textual_content/20230309-implementation_plan_sensitive_terms_list.doctree
Binary file not shown.
Binary file added
BIN
+96.2 KB
...ive_textual_content/20230309-project_proposal_detecting_sensitive_textual_content.doctree
Binary file not shown.
Binary file added
BIN
+104 KB
...lementation_plan_filtering_and_designating_results_with_sensitive_textual_content.doctree
Binary file not shown.
Binary file added
BIN
+57.9 KB
...ensitive_textual_content/20230506-implementation_plan_frontend_blurring_sensitive.doctree
Binary file not shown.
Binary file added
BIN
+3.9 KB
...ees/projects/proposals/trust_and_safety/detecting_sensitive_textual_content/index.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+88.9 KB
.doctrees/projects/proposals/visual_regression_testing/20220217-implementation_plan.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+61.4 KB
.doctrees/projects/proposals/vuex_to_pina_conversion/20220223-project_proposal.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
docs.openverse.org |
50 changes: 50 additions & 0 deletions
50
_downloads/7c06dc7fa79c7a8feb2fbe872ad1e362/link_usernames.py
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,50 @@ | ||
"""GitHub Username Linking | ||
Based on: https://www.sphinx-doc.org/en/master/extdev/appapi.html#event-source-read | ||
and: https://stackoverflow.com/a/31924901/3277713 CC BY-SA 3.0 by C_Z_ | ||
This extension replaces username references of the form `@username` with a link | ||
to the user's GitHub profile. In order to prevent adding references to existing | ||
existing links (e.g. `[@username](...)`, whitespace is required in front of the `@`. | ||
The GITHUB_IGNORE_USERNAMES set contains usernames that should not be linked but may | ||
appear to be usernames in the documentation. | ||
""" | ||
import re | ||
|
||
from sphinx.application import Sphinx | ||
from sphinx.util import logging | ||
|
||
|
||
logger = logging.getLogger(__name__) | ||
|
||
# Format to use for the link to the GitHub profile | ||
GITHUB_USERNAME_TEMPLATE = "https://github.com/{}" | ||
# Regex to match username references | ||
GITHUB_USERNAME_REGEX = re.compile( | ||
r""" | ||
\ # Required initial whitespace | ||
@([A-Za-z0-9-]+) # Match @ then any alphanumeric character or - for the username | ||
""", | ||
flags=re.VERBOSE, | ||
) | ||
GITHUB_IGNORE_USERNAMES = {"todo", "WordPress", "username", "defaultValue"} | ||
|
||
|
||
def _replace_username(match: re.Match) -> str: | ||
username = match.group(1) | ||
if username in GITHUB_IGNORE_USERNAMES: | ||
logger.debug(f"Ignoring username reference: {username}") | ||
return match.group(0) | ||
logger.debug(f"Replacing username reference: {username}") | ||
return f" [@{username}]({GITHUB_USERNAME_TEMPLATE.format(username)})" | ||
|
||
|
||
def replace_username_references(app, docname, source): | ||
logger.debug(f"In file: {docname}") | ||
source[0] = GITHUB_USERNAME_REGEX.sub(_replace_username, source[0]) | ||
|
||
|
||
def setup(app: Sphinx): | ||
# Hook for running the replace username references when the source file is read | ||
app.connect("source-read", replace_username_references) |
Oops, something went wrong.