Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
c93fdec2
Unverified
Commit
c93fdec2
authored
5 years ago
by
XhmikosR
Committed by
GitHub
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Disallow crawling on Netlify. (#29194)
parent
8c3a1298
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
package.json
+2
-1
package.json
site/_includes/scripts.html
+2
-2
site/_includes/scripts.html
site/_includes/stylesheet.html
+1
-1
site/_includes/stylesheet.html
site/_layouts/examples.html
+1
-1
site/_layouts/examples.html
site/robots.txt
+3
-1
site/robots.txt
with
9 additions
and
6 deletions
+9
-6
package.json
+
2
-
1
View file @
c93fdec2
...
...
@@ -69,6 +69,7 @@
"docs"
:
"npm-run-all css-docs js-docs docs-compile docs-lint"
,
"docs-compile"
:
"bundle exec jekyll build"
,
"docs-production"
:
"cross-env JEKYLL_ENV=production npm run docs-compile"
,
"docs-netlify"
:
"cross-env JEKYLL_ENV=netlify npm run docs-compile"
,
"docs-lint"
:
"node build/vnu-jar.js"
,
"docs-serve"
:
"bundle exec jekyll serve"
,
"docs-serve-only"
:
"npm run docs-serve -- --skip-initial-build --no-watch"
,
...
...
@@ -79,7 +80,7 @@
"release-zip"
:
"cross-env-shell
\"
shx rm -rf bootstrap-$npm_package_version-dist && shx cp -r dist/ bootstrap-$npm_package_version-dist && zip -r9 bootstrap-$npm_package_version-dist.zip bootstrap-$npm_package_version-dist && shx rm -rf bootstrap-$npm_package_version-dist
\"
"
,
"dist"
:
"npm-run-all --parallel css js"
,
"test"
:
"npm-run-all lint dist js-test docs-compile docs-lint bundlesize"
,
"netlify"
:
"npm-run-all dist release-sri docs-
production
"
,
"netlify"
:
"npm-run-all dist release-sri docs-
netlify
"
,
"watch"
:
"npm-run-all --parallel watch-*"
,
"watch-css-main"
:
"nodemon --watch scss/ --ext scss --exec
\"
npm run css-main
\"
"
,
"watch-css-docs"
:
"nodemon --watch
\"
site/docs/**/assets/scss/
\"
--ext scss --exec
\"
npm run css-docs
\"
"
,
...
...
This diff is collapsed.
Click to expand it.
site/_includes/scripts.html
+
2
-
2
View file @
c93fdec2
<script
src=
"{{ site.cdn.jquery }}"
integrity=
"{{ site.cdn.jquery_hash }}"
crossorigin=
"anonymous"
></script>
<script>
window
.
jQuery
||
document
.
write
(
'
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/jquery.slim.min.js"><
\
/script>
'
)
</script>
{%- if jekyll.environment == "production" -%}
{%- if jekyll.environment == "production"
or jekyll.environment == "netlify"
-%}
<script
src=
"{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js"
integrity=
"{{ site.cdn.js_bundle_hash }}"
crossorigin=
"anonymous"
></script>
{%- else -%}
<script
src=
"{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.js"
></script>
...
...
@@ -11,7 +11,7 @@
<script
src=
"https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"
></script>
{%- endif -%}
{%- if jekyll.environment == "production" -%}
{%- if jekyll.environment == "production"
or jekyll.environment == "netlify"
-%}
<script
src=
"{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/docs.min.js"
></script>
{%- else -%}
<script
src=
"{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/anchor.min.js"
></script>
...
...
This diff is collapsed.
Click to expand it.
site/_includes/stylesheet.html
+
1
-
1
View file @
c93fdec2
<!-- Bootstrap core CSS -->
{%- if jekyll.environment == "production" %}
{%- if jekyll.environment == "production"
or jekyll.environment == "netlify"
%}
<link
href=
"{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"{{ site.cdn.css_hash }}"
crossorigin=
"anonymous"
>
{% else %}
<link
href=
"{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/css/bootstrap.css"
rel=
"stylesheet"
>
...
...
This diff is collapsed.
Click to expand it.
site/_layouts/examples.html
+
1
-
1
View file @
c93fdec2
...
...
@@ -42,7 +42,7 @@
<script
src=
"{{ site.cdn.jquery }}"
integrity=
"{{ site.cdn.jquery_hash }}"
crossorigin=
"anonymous"
></script>
<script>
window
.
jQuery
||
document
.
write
(
'
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/jquery.slim.min.js"><
\
/script>
'
)
</script>
{%- if jekyll.environment == "production" -%}
{%- if jekyll.environment == "production"
or jekyll.environment == "netlify"
-%}
<script
src=
"{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js"
integrity=
"{{ site.cdn.js_bundle_hash }}"
crossorigin=
"anonymous"
></script>
{%- else -%}
<script
src=
"{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.js"
></script>
...
...
This diff is collapsed.
Click to expand it.
site/robots.txt
+
3
-
1
View file @
c93fdec2
...
...
@@ -3,7 +3,9 @@
# www.robotstxt.org/
{% if jekyll.environment != "netlify" -%}
# Allow crawling of all content
{%- endif %}
User-agent: *
Disallow:{% if jekyll.environment
!
= "
production
" %} /{% endif %}
Disallow:{% if jekyll.environment
=
= "
netlify
" %} /{% endif %}
Sitemap: {{ site.url }}/sitemap.xml
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment