-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into amyblais-patch-9
- Loading branch information
Showing
95 changed files
with
2,299 additions
and
394 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 |
---|---|---|
@@ -1,30 +1,33 @@ | ||
name: CD | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["CI"] | ||
workflows: | ||
- CI | ||
types: | ||
- completed | ||
branches: ["master"] | ||
permissions: | ||
contents: read | ||
branches: | ||
- master | ||
|
||
jobs: | ||
s3-release-prod: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: cd/Download artifacts | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
with: | ||
run-id: ${{ github.event.workflow_run.id }} | ||
github-token: ${{ github.token }} | ||
name: docs | ||
path: build/html | ||
|
||
- name: cd/Configure AWS | ||
uses: aws-actions/configure-aws-credentials@07c2f971bac433df982ccc261983ae443861db49 # v1-node16 | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | ||
with: | ||
aws-region: us-east-1 | ||
aws-access-key-id: ${{ secrets.DOCS_BUILDS_BUCKET_AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.DOCS_BUILDS_BUCKET_AWS_SECRET_ACCESS_KEY }} | ||
- name: cd/Download artifacts | ||
uses: dawidd6/action-download-artifact@0c49384d39ceb023b8040f480a25596fd6cf441b # v2.26.0 | ||
with: | ||
workflow: ${{ github.event.workflow_run.workflow_id }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
workflow_conclusion: success | ||
name: docs | ||
path: build/html | ||
|
||
- name: cd/Upload artifacts to S3 | ||
run: | | ||
aws s3 sync build/html s3://docs.mattermost.com/ --delete --cache-control no-cache --acl public-read --no-progress | ||
aws s3 sync build/html s3://docs.mattermost.com/ --delete --cache-control no-cache --acl public-read --no-progress |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,54 +1,70 @@ | ||
{% extends "page.html" %} | ||
{%- block regular_scripts -%} | ||
{# Load lunr.js and mark.js before anything else #} | ||
<script type="text/javascript" src="https://unpkg.com/[email protected]/lunr.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.es6.min.js" | ||
integrity="sha512-jZSRKDD86PmExf0ZoXQEMxhtxvLtOxo2xMJwgnx3VE/5VT5c8LCsnvut4wK3fIdFyO4szlbz/2tpg+xulnJDyQ==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer"></script> | ||
{{ super() }} | ||
<script src="{{ pathto('_static/js/mattermost-search.js', 1) }}"></script> | ||
<script src="{{ pathto('_static/language_data.js', 1) }}"></script> | ||
{%- endblock regular_scripts -%} | ||
{%- block htmltitle -%} | ||
<title>{{ _("Search") }} - {{ docstitle }}</title> | ||
{%- endblock htmltitle -%} | ||
{% block content %} | ||
<noscript> | ||
<div class="admonition error"> | ||
<p class="admonition-title">{% trans %}Error{% endtrans %}</p> | ||
<p> | ||
{% trans %}Please activate JavaScript to enable the search functionality.{% endtrans %} | ||
</p> | ||
</div> | ||
</noscript> | ||
{% extends "page.html" %} {%- block regular_scripts -%} {# Load lunr.js and | ||
mark.js before anything else #} | ||
<script | ||
type="text/javascript" | ||
src="https://unpkg.com/[email protected]/lunr.js" | ||
></script> | ||
<script | ||
src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.es6.min.js" | ||
integrity="sha512-jZSRKDD86PmExf0ZoXQEMxhtxvLtOxo2xMJwgnx3VE/5VT5c8LCsnvut4wK3fIdFyO4szlbz/2tpg+xulnJDyQ==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer" | ||
></script> | ||
{{ super() }} | ||
<script src="{{ pathto('_static/js/mattermost-search.js', 1) }}"></script> | ||
<script src="{{ pathto('_static/language_data.js', 1) }}"></script> | ||
{%- endblock regular_scripts -%} {%- block htmltitle -%} | ||
<title>{{ _("Search") }} - {{ docstitle }}</title> | ||
{%- endblock htmltitle -%} {% block content %} | ||
<noscript> | ||
<div class="admonition error"> | ||
<p class="admonition-title">{% trans %}Error{% endtrans %}</p> | ||
<p> | ||
{% trans %}Please activate JavaScript to enable the search | ||
functionality.{% endtrans %} | ||
</p> | ||
</div> | ||
</noscript> | ||
|
||
<div style="display:inline-block"> | ||
<h2 id="search-title" style="float: left;"></h2><h2 id="search-dots" style="float: right;"></h2> | ||
</div> | ||
<p id="search-summary" class="search-summary"></p> | ||
<!-- configuration setting-specific results will display here --> | ||
<div id="config-setting-results-section" style="display: none;"> | ||
<h3>Configuration settings</h3><a id="config-setting-results-anchor"></a> | ||
<div class="search" id="config-setting-results-list"></div> | ||
</div> | ||
<!-- all other results will display here --> | ||
<div id="search-additional-information-header" style="display: none;"> | ||
<h3>Additional information</h3><a id="search-results-anchor"></a> | ||
</div> | ||
<div id="search-results"> | ||
<ul class="search" id="search-results-list"></ul> | ||
</div> | ||
{% endblock %} | ||
{% block scripts -%} | ||
{{ super() }} | ||
{# Load the search indexes after the DOM has finished loading #} | ||
<script lang="js"> | ||
_ready(() => { | ||
Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); | ||
}); | ||
_ready(() => { | ||
Search.loadConfigSettingsIndex("{{ pathto('config-settings-index.json', 1) }}"); | ||
}); | ||
</script> | ||
<div style="display: inline-block"> | ||
<h2 id="search-title" style="float: left"></h2> | ||
<h2 id="search-dots" style="float: right"></h2> | ||
</div> | ||
<p id="search-summary" class="search-summary"></p> | ||
<!-- configuration setting-specific results will display here --> | ||
<div id="config-setting-results-section" style="display: none"> | ||
<h3>Configuration settings</h3> | ||
<a id="config-setting-results-anchor"></a> | ||
<div class="search" id="config-setting-results-list"></div> | ||
</div> | ||
<!-- all other results will display here --> | ||
<div id="search-additional-information-header" style="display: none"> | ||
<h3>Additional information</h3> | ||
<a id="search-results-anchor"></a> | ||
</div> | ||
<div id="search-results"> | ||
<ul class="search" id="search-results-list"></ul> | ||
</div> | ||
{% endblock %} {% block scripts -%} {{ super() }} {# Load the search indexes | ||
after the DOM has finished loading #} | ||
<script lang="js"> | ||
_ready(() => { | ||
Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); | ||
}); | ||
_ready(() => { | ||
Search.loadConfigSettingsIndex("{{ pathto('config-settings-index.json', 1) }}"); | ||
}); | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
const searchTitle = document.getElementById('search-title'); | ||
const searchResults = document.getElementById('search-results'); | ||
const searchSummary = document.getElementById('search-summary'); | ||
const searchQuery = new URLSearchParams(window.location.search).get('q'); | ||
|
||
if (!searchQuery || searchQuery.trim() === '') { | ||
searchTitle.textContent = "Search Results"; | ||
searchSummary.textContent = "Please enter at least one search term."; | ||
} | ||
}); | ||
</script> | ||
{%- endblock scripts %} |
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
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.