mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Removed unnecessary non-null hints
This commit is contained in:
parent
6344549ecf
commit
7ca1c1d623
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -245,7 +245,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/bundle.1ba198e5.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.6079f66d.min.js' | url }}"></script>
|
||||||
{% for path in config.extra_javascript %}
|
{% for path in config.extra_javascript %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -70,14 +70,14 @@ export function fetchSourceFacts(
|
|||||||
): Observable<SourceFacts> {
|
): Observable<SourceFacts> {
|
||||||
|
|
||||||
/* Try to match GitHub repository */
|
/* Try to match GitHub repository */
|
||||||
let match = url.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i)!
|
let match = url.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i)
|
||||||
if (match) {
|
if (match) {
|
||||||
const [, user, repo] = match
|
const [, user, repo] = match
|
||||||
return fetchSourceFactsFromGitHub(user, repo)
|
return fetchSourceFactsFromGitHub(user, repo)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to match GitLab repository */
|
/* Try to match GitLab repository */
|
||||||
match = url.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i)!
|
match = url.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i)
|
||||||
if (match) {
|
if (match) {
|
||||||
const [, base, slug] = match
|
const [, base, slug] = match
|
||||||
return fetchSourceFactsFromGitLab(base, slug)
|
return fetchSourceFactsFromGitLab(base, slug)
|
||||||
|
Loading…
Reference in New Issue
Block a user