diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-08-10 14:24:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-10 14:24:32 +0300 |
commit | 01261489442e528f13a780bb06bf80d67e35fe80 (patch) | |
tree | 81c58ad868212672ca6e95c72639d96786091af0 | |
parent | 8420fb8cc9fcbdfa872846a606237af29bd680bb (diff) | |
parent | da6a229b0dcd9cafedd1f7cff3d6507b771d9507 (diff) |
Merge pull request #6 from twbs/xmr-dev
Fixes
30 files changed, 127 insertions, 72 deletions
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..205021e49 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Enforce Unix newlines +* text=auto eol=lf diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..39c1a9893 --- /dev/null +++ b/Gemfile @@ -0,0 +1,6 @@ +source 'https://rubygems.org' + +group :development, :test do + gem 'jekyll', '~> 3.8.6' + gem 'wdm', '~> 0.1.1', :install_if => Gem.win_platform? +end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..dcb3c85e3 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,68 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.6.0) + public_suffix (>= 2.0.2, < 4.0) + colorator (1.1.0) + concurrent-ruby (1.1.5) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + eventmachine (1.2.7) + eventmachine (1.2.7-x64-mingw32) + ffi (1.11.1) + ffi (1.11.1-x64-mingw32) + forwardable-extended (2.6.0) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.6) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-watch (2.2.1) + listen (~> 3.0) + kramdown (1.17.0) + liquid (4.0.3) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + mercenary (0.3.6) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (3.1.1) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + rouge (3.8.0) + ruby_dep (1.5.0) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + wdm (0.1.1) + +PLATFORMS + ruby + x64-mingw32 + +DEPENDENCIES + jekyll (~> 3.8.6) + wdm (~> 0.1.1) + +BUNDLED WITH + 1.17.3 @@ -32,12 +32,11 @@ Clone the repo, install dependencies, and start the Jekyll server locally. ``` git clone https://github.com/twbs/icons/ cd icons -gem install jekyll -npm i -jekyll serve +bundle install +bundle exec jekyll s ``` -Then open http://localhost:4000 in your browser. +Then open `http://localhost:4000` in your browser. ## Publishing diff --git a/_config.yml b/_config.yml index c843c978a..0b3fc17c3 100644 --- a/_config.yml +++ b/_config.yml @@ -6,7 +6,7 @@ source: "./docs" markdown: kramdown package_version: 0.1.0 -package_repo: https://github.com/twbs/icons/ +package_repo: https://github.com/twbs/icons current_version: "4.3.1" docs_version: "4.3" diff --git a/docs/_includes/icons/booticon-chevron-right.html b/docs/_includes/icons/booticon-chevron-right.html deleted file mode 100644 index 0c3498b3f..000000000 --- a/docs/_includes/icons/booticon-chevron-right.html +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 16 16" role="img"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 14l6-6-6-6"/></svg> diff --git a/docs/_includes/icons/bootstrap-logo-solid.html b/docs/_includes/icons/bootstrap-logo-solid.html deleted file mode 100644 index 450d9ef18..000000000 --- a/docs/_includes/icons/bootstrap-logo-solid.html +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" width="{{ include.width }}" height="{{ include.height }}" class="{{ include.class }}" viewBox="0 0 64 64" role="img"><path fill="currentColor" fill-rule="evenodd" d="M16 0h32c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16C7.163 64 0 56.837 0 48V16C0 7.163 7.163 0 16 0zm18.14 49c7.22 0 11.555-3.633 11.555-9.586 0-4.406-3.047-7.664-7.617-8.133v-.398c3.328-.563 5.93-3.727 5.93-7.266 0-5.203-3.82-8.437-10.172-8.437H20.242V49h13.899zm-8.648-29.367h7.125c3.89 0 6.164 1.828 6.164 4.945 0 3.211-2.414 4.922-7.054 4.922h-6.235v-9.867zm0 24.914V33.648h7.29c4.945 0 7.546 1.852 7.546 5.391 0 3.586-2.508 5.508-7.242 5.508h-7.594z"/></svg> diff --git a/docs/_includes/icons/bootstrap-logo-solid.svg b/docs/_includes/icons/bootstrap-logo-solid.svg new file mode 100644 index 000000000..0628c5f2b --- /dev/null +++ b/docs/_includes/icons/bootstrap-logo-solid.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{% if include.width %} width="{{ include.width }}"{% endif %}{% if include.height %} height="{{ include.height }}"{% endif %}{% if include.class %} class="{{ include.class }}"{% endif %} viewBox="0 0 64 64" role="img"><path fill="currentColor" fill-rule="evenodd" d="M16 0h32c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16C7.163 64 0 56.837 0 48V16C0 7.163 7.163 0 16 0zm18.14 49c7.22 0 11.555-3.633 11.555-9.586 0-4.406-3.047-7.664-7.617-8.133v-.398c3.328-.563 5.93-3.727 5.93-7.266 0-5.203-3.82-8.437-10.172-8.437H20.242V49h13.899zm-8.648-29.367h7.125c3.89 0 6.164 1.828 6.164 4.945 0 3.211-2.414 4.922-7.054 4.922h-6.235v-9.867zm0 24.914V33.648h7.29c4.945 0 7.546 1.852 7.546 5.391 0 3.586-2.508 5.508-7.242 5.508h-7.594z"/></svg> diff --git a/docs/_includes/icons/bootstrap-stack.html b/docs/_includes/icons/bootstrap-stack.html deleted file mode 100644 index 1328a93aa..000000000 --- a/docs/_includes/icons/bootstrap-stack.html +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 1024 860" role="img"><title>{{ with .title }}{{ . }}{{ else }}Bootstrap{{ end }}</title><defs><linearGradient id="c" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#5c24ae"/><stop offset="100%" stop-color="#30135a"/></linearGradient><path id="b" d="M355.967 242.807l-322 216.395c-44.275 29.754-44.275 78.443 0 108.197l322 216.395c44.275 29.754 116.725 29.754 161 0l322-216.395c44.275-29.754 44.275-78.443 0-108.197l-322-216.395c-44.275-29.754-116.725-29.754-161 0z"/><filter id="a" width="108%" height="112%" x="-4%" y="-4.3%" filterUnits="objectBoundingBox"><feOffset dy="10" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="10"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/></filter><linearGradient id="f" x1="50%" x2="50%" y1="-17.303%" y2="100%"><stop offset="0%" stop-color="#7331d4"/><stop offset="100%" stop-color="#461b84"/></linearGradient><path id="e" d="M355.967 132.807l-322 216.395c-44.275 29.754-44.275 78.443 0 108.197l322 216.395c44.275 29.754 116.725 29.754 161 0l322-216.395c44.275-29.754 44.275-78.443 0-108.197l-322-216.395c-44.275-29.754-116.725-29.754-161 0z"/><filter id="d" width="108%" height="112%" x="-4%" y="-4.3%" filterUnits="objectBoundingBox"><feOffset dy="10" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="10"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/></filter><linearGradient id="i" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#905bdd"/><stop offset="100%" stop-color="#5521a0"/></linearGradient><path id="h" d="M355.967 22.807l-322 216.395c-44.275 29.754-44.275 78.443 0 108.197l322 216.395c44.275 29.754 116.725 29.754 161 0l322-216.395c44.275-29.754 44.275-78.443 0-108.197l-322-216.395c-44.275-29.754-116.725-29.754-161 0z"/><filter id="g" width="108%" height="112%" x="-4%" y="-4.3%" filterUnits="objectBoundingBox"><feOffset dy="10" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="10"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/></filter></defs><g fill="none"><g transform="translate(75 23)"><use fill="#000" filter="url(#a)" xlink:href="#b"/><use fill="url(#c)" xlink:href="#b"/></g><g transform="translate(75 23)"><use fill="#000" filter="url(#d)" xlink:href="#e"/><use fill="url(#f)" xlink:href="#e"/></g><g transform="translate(75 23)"><use fill="#000" filter="url(#g)" xlink:href="#h"/><use fill="url(#i)" xlink:href="#h"/></g><path fill="#fff" d="M558.273 447.667L308.036 279.5l97.982-65.847c42.83-28.784 96.789-31.483 134.245-6.311 26.044 17.502 31.214 46.615 11.444 65.724l1.389.934c38.324-19.932 84.107-18.527 117.396 3.845 44.046 29.6 38.671 68.419-14.561 104.193l-97.658 65.629zM447.112 331.01l49.942-33.562c36.935-24.822 42.31-48.249 15.224-66.451-24.798-16.665-55.49-14.453-85.851 5.95l-59.641 40.081 80.326 53.982zm176.532 35.663c37.63-25.289 42.136-48.832 13.203-68.276-28.932-19.444-64.163-15.614-104.042 11.186l-58.789 39.508 87.92 59.084 61.708-41.502z"/></g></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/bootstrap.html b/docs/_includes/icons/bootstrap.html deleted file mode 100644 index 1b57d335e..000000000 --- a/docs/_includes/icons/bootstrap.html +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 612 612" role="img"><title>{{ with .title }}{{ . }}{{ else }}Bootstrap{{ end }}</title><path fill="currentColor" d="M510 8a94.3 94.3 0 0 1 94 94v408a94.3 94.3 0 0 1-94 94H102a94.3 94.3 0 0 1-94-94V102a94.3 94.3 0 0 1 94-94h408m0-8H102C45.9 0 0 45.9 0 102v408c0 56.1 45.9 102 102 102h408c56.1 0 102-45.9 102-102V102C612 45.9 566.1 0 510 0z"/><path fill="currentColor" d="M196.77 471.5V154.43h124.15c54.27 0 91 31.64 91 79.1 0 33-24.17 63.72-54.71 69.21v1.76c43.07 5.49 70.75 35.82 70.75 78 0 55.81-40 89-107.45 89zm39.55-180.4h63.28c46.8 0 72.29-18.68 72.29-53 0-31.42-21.53-48.78-60-48.78h-75.57zm78.22 145.46c47.68 0 72.73-19.34 72.73-56s-25.93-55.37-76.46-55.37h-74.49v111.4z"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/download.html b/docs/_includes/icons/download.html deleted file mode 100644 index b00ebabae..000000000 --- a/docs/_includes/icons/download.html +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }} fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 32 32"><title>{{ with .title }}{{ . }}{{ else }}Download{{ end }}</title><path d="M9 22c-9 1-8-10 0-9C6 2 23 2 22 10c10-3 10 13 1 12m-12 4l5 4 5-4m-5-10v14"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/github.html b/docs/_includes/icons/github.html deleted file mode 100644 index 829b93f1a..000000000 --- a/docs/_includes/icons/github.html +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 512 499.36" role="img"><title>{{ with .title }}{{ . }}{{ else }}GitHub{{ end }}</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg> diff --git a/docs/_includes/icons/github.svg b/docs/_includes/icons/github.svg new file mode 100644 index 000000000..0243df5a2 --- /dev/null +++ b/docs/_includes/icons/github.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{% if include.width %} width="{{ include.width }}"{% endif %}{% if include.height %} height="{{ include.height }}"{% endif %}{% if include.class %} class="{{ include.class }}"{% endif %} viewBox="0 0 512 499.36" role="img" focusable="false"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/import.svg b/docs/_includes/icons/import.svg deleted file mode 100644 index deaeb090d..000000000 --- a/docs/_includes/icons/import.svg +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }} fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 32 32"><title>{{ with .title }}{{ . }}{{ else }}Import{{ end }}</title><path d="M28 22v8H4v-8M16 4v20m-8-8l8 8 8-8"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/lightning.svg b/docs/_includes/icons/lightning.svg deleted file mode 100644 index 02ae006d3..000000000 --- a/docs/_includes/icons/lightning.svg +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }} fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true"{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 32 32"><title>{{ with .title }}{{ . }}{{ else }}Lightning{{ end }}</title><path d="M18 13l8-11L8 13l6 6-8 11 18-11z"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/menu.svg b/docs/_includes/icons/menu.svg deleted file mode 100644 index 70eaccec7..000000000 --- a/docs/_includes/icons/menu.svg +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 30 30" role="img"><title>{{ with .title }}{{ . }}{{ else }}Menu{{ end }}</title><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/opencollective.html b/docs/_includes/icons/opencollective.html deleted file mode 100644 index 2896ba50c..000000000 --- a/docs/_includes/icons/opencollective.html +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }} fill="currentColor" fill-rule="evenodd"{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 40 41" role="img"><title>{{ with .title }}{{ . }}{{ else }}Open Collective{{ end }}</title><path fill-opacity=".4" d="M32.8 21c0 2.4-.8 4.9-2 6.9l5.1 5.1c2.5-3.4 4.1-7.6 4.1-12 0-4.6-1.6-8.8-4-12.2L30.7 14c1.2 2 2 4.3 2 7z"/><path d="M20 33.7a12.8 12.8 0 0 1 0-25.6c2.6 0 5 .7 7 2.1L32 5a20 20 0 1 0 .1 31.9l-5-5.2a13 13 0 0 1-7 2z"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/opencollective.svg b/docs/_includes/icons/opencollective.svg new file mode 100644 index 000000000..090d41dff --- /dev/null +++ b/docs/_includes/icons/opencollective.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{% if include.width %} width="{{ include.width }}"{% endif %}{% if include.height %} height="{{ include.height }}"{% endif %} fill="currentColor" fill-rule="evenodd"{% if include.class %} class="{{ include.class }}"{% endif %} viewBox="0 0 40 41" role="img" focusable="false"><title>Open Collective</title><path fill-opacity=".4" d="M32.8 21c0 2.4-.8 4.9-2 6.9l5.1 5.1c2.5-3.4 4.1-7.6 4.1-12 0-4.6-1.6-8.8-4-12.2L30.7 14c1.2 2 2 4.3 2 7z"/><path d="M20 33.7a12.8 12.8 0 0 1 0-25.6c2.6 0 5 .7 7 2.1L32 5a20 20 0 1 0 .1 31.9l-5-5.2a13 13 0 0 1-7 2z"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/slack.html b/docs/_includes/icons/slack.html deleted file mode 100644 index e3c995cc7..000000000 --- a/docs/_includes/icons/slack.html +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 512 512" role="img"><title>{{ with .title }}{{ . }}{{ else }}Slack{{ end }}</title><path fill="currentColor" d="M210.787 234.832l68.31-22.883 22.1 65.977-68.309 22.882z"/><path fill="currentColor" d="M490.54 185.6C437.7 9.59 361.6-31.34 185.6 21.46S-31.3 150.4 21.46 326.4 150.4 543.3 326.4 490.54 543.34 361.6 490.54 185.6zM401.7 299.8l-33.15 11.05 11.46 34.38c4.5 13.92-2.87 29.06-16.78 33.56-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18l-11.46-34.38-68.36 22.92 11.46 34.38c4.5 13.92-2.87 29.06-16.78 33.56-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18l-11.46-34.43-33.15 11.05c-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18c-4.5-13.92 2.87-29.06 16.78-33.56l33.12-11.03-22.1-65.9-33.15 11.05c-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18c-4.48-13.93 2.89-29.07 16.81-33.58l33.15-11.05-11.46-34.38c-4.5-13.92 2.87-29.06 16.78-33.56s29.06 2.87 33.56 16.78l11.46 34.38 68.36-22.92-11.46-34.38c-4.5-13.92 2.87-29.06 16.78-33.56s29.06 2.87 33.56 16.78l11.47 34.42 33.15-11.05c13.92-4.5 29.06 2.87 33.56 16.78s-2.87 29.06-16.78 33.56L329.7 194.6l22.1 65.9 33.15-11.05c13.92-4.5 29.06 2.87 33.56 16.78s-2.88 29.07-16.81 33.57z"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/slack.svg b/docs/_includes/icons/slack.svg new file mode 100644 index 000000000..d6ae455d8 --- /dev/null +++ b/docs/_includes/icons/slack.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{% if include.width %} width="{{ include.width }}"{% endif %}{% if include.height %} height="{{ include.height }}"{% endif %}{% if include.class %} class="{{ include.class }}"{% endif %} viewBox="0 0 512 512" role="img" focusable="false"><title>Slack</title><path fill="currentColor" d="M210.787 234.832l68.31-22.883 22.1 65.977-68.309 22.882z"/><path fill="currentColor" d="M490.54 185.6C437.7 9.59 361.6-31.34 185.6 21.46S-31.3 150.4 21.46 326.4 150.4 543.3 326.4 490.54 543.34 361.6 490.54 185.6zM401.7 299.8l-33.15 11.05 11.46 34.38c4.5 13.92-2.87 29.06-16.78 33.56-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18l-11.46-34.38-68.36 22.92 11.46 34.38c4.5 13.92-2.87 29.06-16.78 33.56-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18l-11.46-34.43-33.15 11.05c-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18c-4.5-13.92 2.87-29.06 16.78-33.56l33.12-11.03-22.1-65.9-33.15 11.05c-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18c-4.48-13.93 2.89-29.07 16.81-33.58l33.15-11.05-11.46-34.38c-4.5-13.92 2.87-29.06 16.78-33.56s29.06 2.87 33.56 16.78l11.46 34.38 68.36-22.92-11.46-34.38c-4.5-13.92 2.87-29.06 16.78-33.56s29.06 2.87 33.56 16.78l11.47 34.42 33.15-11.05c13.92-4.5 29.06 2.87 33.56 16.78s-2.87 29.06-16.78 33.56L329.7 194.6l22.1 65.9 33.15-11.05c13.92-4.5 29.06 2.87 33.56 16.78s-2.88 29.07-16.81 33.57z"/></svg>
\ No newline at end of file diff --git a/docs/_includes/icons/twitter.html b/docs/_includes/icons/twitter.html deleted file mode 100644 index 74fe5f133..000000000 --- a/docs/_includes/icons/twitter.html +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 512 416.32" role="img"><title>{{ with .title }}{{ . }}{{ else }}Twitter{{ end }}</title><path fill="currentColor" d="M160.83 416.32c193.2 0 298.92-160.22 298.92-298.92 0-4.51 0-9-.2-13.52A214 214 0 0 0 512 49.38a212.93 212.93 0 0 1-60.44 16.6 105.7 105.7 0 0 0 46.3-58.19 209 209 0 0 1-66.79 25.37 105.09 105.09 0 0 0-181.73 71.91 116.12 116.12 0 0 0 2.66 24c-87.28-4.3-164.73-46.3-216.56-109.82A105.48 105.48 0 0 0 68 159.6a106.27 106.27 0 0 1-47.53-13.11v1.43a105.28 105.28 0 0 0 84.21 103.06 105.67 105.67 0 0 1-47.33 1.84 105.06 105.06 0 0 0 98.14 72.94A210.72 210.72 0 0 1 25 370.84a202.17 202.17 0 0 1-25-1.43 298.85 298.85 0 0 0 160.83 46.92"/></svg> diff --git a/docs/_includes/icons/twitter.svg b/docs/_includes/icons/twitter.svg new file mode 100644 index 000000000..7b838be58 --- /dev/null +++ b/docs/_includes/icons/twitter.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{% if include.width %} width="{{ include.width }}"{% endif %}{% if include.height %} height="{{ include.height }}"{% endif %}{% if include.class %} class="{{ include.class }}"{% endif %} viewBox="0 0 512 416.32" role="img" focusable="false"><title>Twitter</title><path fill="currentColor" d="M160.83 416.32c193.2 0 298.92-160.22 298.92-298.92 0-4.51 0-9-.2-13.52A214 214 0 0 0 512 49.38a212.93 212.93 0 0 1-60.44 16.6 105.7 105.7 0 0 0 46.3-58.19 209 209 0 0 1-66.79 25.37 105.09 105.09 0 0 0-181.73 71.91 116.12 116.12 0 0 0 2.66 24c-87.28-4.3-164.73-46.3-216.56-109.82A105.48 105.48 0 0 0 68 159.6a106.27 106.27 0 0 1-47.53-13.11v1.43a105.28 105.28 0 0 0 84.21 103.06 105.67 105.67 0 0 1-47.33 1.84 105.06 105.06 0 0 0 98.14 72.94A210.72 210.72 0 0 1 25 370.84a202.17 202.17 0 0 1-25-1.43 298.85 298.85 0 0 0 160.83 46.92"/></svg>
\ No newline at end of file diff --git a/docs/_includes/navbar.html b/docs/_includes/navbar.html index e76ce8576..5419d5785 100644 --- a/docs/_includes/navbar.html +++ b/docs/_includes/navbar.html @@ -1,7 +1,7 @@ <header class="navbar navbar-expand navbar-dark flex-column flex-md-row bd-navbar px-0"> <div class="container flex-wrap flex-md-nowrap py-0 px-3"> <a class="navbar-brand mr-0 mr-md-2" href="/" aria-label="Bootstrap"> - {% include icons/bootstrap-logo-solid.html class="d-block" width="32" height="32" %} + {% include icons/bootstrap-logo-solid.svg class="d-block" width="32" height="32" %} </a> <div class="navbar-nav-scroll order-3 order-md-0 d-flex justify-content-center justify-content-md-start"> @@ -32,23 +32,23 @@ <ul class="navbar-nav ml-sm-auto"> <li class="nav-item"> - <a class="nav-link p-2" href="{{ .Site.Params.repo }}" target="_blank" rel="noopener" aria-label="GitHub"> - {{ partial "icons/github.svg" (dict "class" "navbar-nav-svg" "width" "36" "height" "36") }} + <a class="nav-link p-2" href="{{ site.repo }}" target="_blank" rel="noopener" aria-label="GitHub"> + {% include icons/github.svg class="navbar-nav-svg" width="36" height="36" %} </a> </li> <li class="nav-item"> - <a class="nav-link p-2" href="https://twitter.com/{{ .Site.Params.twitter }}" target="_blank" rel="noopener" aria-label="Twitter"> - {{ partial "icons/twitter.svg" (dict "class" "navbar-nav-svg" "width" "36" "height" "36") }} + <a class="nav-link p-2" href="https://twitter.com/{{ site.twitter }}" target="_blank" rel="noopener" aria-label="Twitter"> + {% include icons/twitter.svg class="navbar-nav-svg" width="36" height="36" %} </a> </li> <li class="nav-item"> - <a class="nav-link p-2" href="{{ .Site.Params.slack }}/" target="_blank" rel="noopener" aria-label="Slack"> - {{ partial "icons/slack.svg" (dict "class" "navbar-nav-svg" "width" "36" "height" "36") }} + <a class="nav-link p-2" href="{{ site.slack }}/" target="_blank" rel="noopener" aria-label="Slack"> + {% include icons/slack.svg class="navbar-nav-svg" width="36" height="36" %} </a> </li> <li class="nav-item"> - <a class="nav-link p-2" href="{{ .Site.Params.opencollective }}/" target="_blank" rel="noopener" aria-label="Open Collective"> - {{ partial "icons/opencollective.svg" (dict "class" "navbar-nav-svg" "width" "36" "height" "36") }} + <a class="nav-link p-2" href="{{ site.opencollective }}/" target="_blank" rel="noopener" aria-label="Open Collective"> + {% include icons/opencollective.svg class="navbar-nav-svg" width="36" height="36" %} </a> </li> </ul> diff --git a/docs/_includes/subnav.html b/docs/_includes/subnav.html deleted file mode 100644 index e69de29bb..000000000 --- a/docs/_includes/subnav.html +++ /dev/null diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 4611e3e4f..922b54c36 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -1,7 +1,9 @@ -<html> +<!doctype html> +<html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + <meta name="description" content="{{ site.description }}"> <meta name="robots" content="noindex"> <title>{{ site.title }}</title> <link rel="icon" type="image/x-icon" href="{{ "/assets/favicon.ico" | relative_url }}"> @@ -13,5 +15,13 @@ {% include navbar.html %} {{ content }} + + <script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script> + <script> + var options = { + valueNames: ['name'] + }; + var iconsList = new List('icons', options); + </script> </body> </html> diff --git a/docs/index.html b/docs/index.html index ebc1be8c7..670c8c8fb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -56,15 +56,6 @@ layout: default </div> </div> -<script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script> -<script> - var options = { - valueNames: [ 'name' ] - }; - var iconsList = new List('icons', options); -</script> - - <div class="container"> <h2 id="usage">Usage</h2> @@ -135,15 +126,15 @@ layout: default <div class="list-group-item d-flex align-items-center"> <div class="mb-0">Item with switch</div> <div class="form-check form-switch ml-auto" style="font-size: 1.25rem;"> - <input class="form-check-input ml-0" type="checkbox" id="playgroundSwitch1" checked> - <label class="sr-only" for="playgroundSwitch1">Switch label</label> + <input class="form-check-input ml-0" type="checkbox" id="playgroundSwitch3" checked> + <label class="sr-only" for="playgroundSwitch3">Switch label</label> </div> </div> <div class="list-group-item d-flex align-items-center"> <div class="mb-0">Another with switch</div> <div class="form-check form-switch ml-auto" style="font-size: 1.25rem;"> - <input class="form-check-input ml-0" type="checkbox" id="playgroundSwitch2"> - <label class="sr-only" for="playgroundSwitch2">Another switch label</label> + <input class="form-check-input ml-0" type="checkbox" id="playgroundSwitch4"> + <label class="sr-only" for="playgroundSwitch4">Another switch label</label> </div> </div> <div class="list-group-item d-flex align-items-center"> diff --git a/icons/list-task.svg b/icons/list-task.svg index 1ed0eecf0..6a61e82bc 100644 --- a/icons/list-task.svg +++ b/icons/list-task.svg @@ -1,21 +1,8 @@ -<?xml version="1.0" encoding="UTF-8"?> -<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <!-- Generator: Sketch 56.2 (81672) - https://sketch.com --> - <title>list-task</title> - <desc>Created with Sketch.</desc> - <g id="v2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> - <g id="icons" transform="translate(-260.000000, -80.000000)"> - <g id="slices"></g> - <g transform="translate(1.000000, 2.000000)" id="list-task" stroke="currentColor"> - <g transform="translate(262.000000, 82.000000)"> - <path d="M4.5,9.5 L13.5,9.5" id="line" stroke-linecap="round"></path> - <path d="M4.5,5.5 L13.5,5.5" id="line" stroke-linecap="round"></path> - <path d="M4.5,1.5 L13.5,1.5" id="line" stroke-linecap="round"></path> - <rect id="Rectangle" x="0.5" y="0.5" width="2" height="2" rx="0.5"></rect> - <rect id="Rectangle-Copy-12" x="0.5" y="4.5" width="2" height="2" rx="0.5"></rect> - <rect id="Rectangle-Copy-13" x="0.5" y="8.5" width="2" height="2" rx="0.5"></rect> - </g> - </g> - </g> - </g> -</svg>
\ No newline at end of file +<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"> + <g fill="none" fill-rule="evenodd" stroke="currentColor" transform="translate(3 4)"> + <path stroke-linecap="round" d="M4.5 9.5h9m-9-4h9m-9-4h9"/> + <rect width="2" height="2" x=".5" y=".5" rx=".5"/> + <rect width="2" height="2" x=".5" y="4.5" rx=".5"/> + <rect width="2" height="2" x=".5" y="8.5" rx=".5"/> + </g> +</svg> diff --git a/package-lock.json b/package-lock.json index 3a6567c2d..67a521670 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "bootstrap-icons", - "version": "1.0.0", + "version": "0.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 442c78d64..20f130789 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "description": "Official open source icon library for Bootstrap", "scripts": { "icons-prep": "svgo --config=svgo.yml --input=icons/", - "icons-zip": "cross-env-shell 'shx rm -rf bootstrap-icons-$npm_package_version && shx cp -r icons/ bootstrap-icons-$npm_package_version && zip -r9 bootstrap-icons-$npm_package_version.zip bootstrap-icons-$npm_package_version && shx rm -rf bootstrap-icons-$npm_package_version'", - "push-pages": "cd _site && git init && git remote add staging https://github.com/twbs/icons/ && git add . && git commit -m 'Publishing latest changes' && git push staging master:gh-pages --force && git remote rm staging", - "publish": "jekyll build && npm run push-pages" + "icons-zip": "cross-env-shell \"shx rm -rf bootstrap-icons-$npm_package_version && shx cp -r icons/ bootstrap-icons-$npm_package_version && zip -r9 bootstrap-icons-$npm_package_version.zip bootstrap-icons-$npm_package_version && shx rm -rf bootstrap-icons-$npm_package_version\"", + "push-pages": "cd _site && git init && git remote add staging https://github.com/twbs/icons/ && git add . && git commit -m \"Publishing latest changes\" && git push staging master:gh-pages --force && git remote rm staging", + "publish": "bundle exec jekyll build && npm run push-pages" }, "repository": { "type": "git", - "url": "https://github.com/twbs/icons.git" + "url": "git+https://github.com/twbs/icons.git" }, "keywords": [ "bootstrap", @@ -21,10 +21,13 @@ "bugs": { "url": "https://github.com/twbs/icons/issues" }, - "homepage": "https://icons.getbootstrap.com", + "homepage": "https://icons.getbootstrap.com/", "devDependencies": { "cross-env": "^5.2.0", "shx": "^0.3.2", "svgo": "^1.3.0" - } + }, + "files": [ + "icons/*.svg" + ] } @@ -1,7 +1,3 @@ -# Usage: -# install svgo globally: `npm i -g svgo` -# svgo --config=build/svgo.yml --input=foo.svg - # https://github.com/svg/svgo/blob/master/docs/how-it-works/en.md # replace default config |