chore: remove root files
This commit is contained in:
parent
038d448b65
commit
0280cbcd43
41 changed files with 0 additions and 11462 deletions
18
.babelrc
18
.babelrc
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
"presets": [
|
|
||||||
[
|
|
||||||
"env",
|
|
||||||
{
|
|
||||||
"targets": {
|
|
||||||
"browsers": ["last 2 versions", "ie >= 9"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"stage-3"
|
|
||||||
],
|
|
||||||
"env": {
|
|
||||||
"test": {
|
|
||||||
"plugins": ["babel-plugin-rewire"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
service_name: travis-ci
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
coverage/
|
|
||||||
dist/
|
|
||||||
docs/dist
|
|
||||||
dist-es5-module/
|
|
||||||
13
.eslintrc.js
13
.eslintrc.js
|
|
@ -1,13 +0,0 @@
|
||||||
/* eslint-disable import/no-commonjs */
|
|
||||||
module.exports = {
|
|
||||||
extends: ['algolia', 'algolia/jest'],
|
|
||||||
globals: {
|
|
||||||
docsearch: true,
|
|
||||||
Glide: true,
|
|
||||||
Popper: true
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
'no-console': 0,
|
|
||||||
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
25
.github/ISSUE_TEMPLATE/docsearch_ui.md
vendored
25
.github/ISSUE_TEMPLATE/docsearch_ui.md
vendored
|
|
@ -1,25 +0,0 @@
|
||||||
---
|
|
||||||
name: Enhance the search-UI
|
|
||||||
about: Everything related to the front end library
|
|
||||||
---
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Thanks for participating in this project!
|
|
||||||
Please:
|
|
||||||
- make sure you are using the latest version of the library.
|
|
||||||
- do at least one GitHub search in current issues, maybe your question is already here
|
|
||||||
-->
|
|
||||||
|
|
||||||
**Do you want to request a _feature_ or report a _bug_?**
|
|
||||||
|
|
||||||
**What is the current behavior?**
|
|
||||||
|
|
||||||
**If the current behavior is a bug, please provide all the steps to reproduce and a minimal
|
|
||||||
[JSFiddle][3] example or a repository on GitHub that we can `npm install`
|
|
||||||
and `npm start`.**
|
|
||||||
|
|
||||||
**What is the expected behavior?**
|
|
||||||
|
|
||||||
[1]: https://github.com/algolia/docsearch-configs
|
|
||||||
[2]: https://docsearch.algolia.com/docs/config-file
|
|
||||||
[3]: https://jsfiddle.net/
|
|
||||||
17
.github/ISSUE_TEMPLATE/docsearch_user.md
vendored
17
.github/ISSUE_TEMPLATE/docsearch_user.md
vendored
|
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
name: Issue with your own DocSearch implementation
|
|
||||||
about: Everything related to your own custom DocSearch index having a configuration
|
|
||||||
---
|
|
||||||
|
|
||||||
**Is your issue related to your own DocSearch implementation?**
|
|
||||||
|
|
||||||
- If it is a styling issue regarding your search-UI, you are in the good place, you can remove this section.
|
|
||||||
- If the issue is due to a wrong individual crawl:
|
|
||||||
|
|
||||||
Please [try to update your configuration][1]. Our [dedicated documentation welcomes any feedback][2]. If it is not solving it, please open an issue on the configuration repository.
|
|
||||||
|
|
||||||
If you are using our DocSearch on your own, please note that we will help you in the best effort possible.
|
|
||||||
|
|
||||||
- What is the dropdown version you are using?
|
|
||||||
- What is the scraper version you are using?
|
|
||||||
- Could you share us the configuration file you are using?
|
|
||||||
20
.github/PULL_REQUEST_TEMPLATE.md
vendored
20
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
|
@ -1,20 +0,0 @@
|
||||||
<!--
|
|
||||||
Thanks for submitting a pull request!
|
|
||||||
Please provide enough information so that others can review your pull request.
|
|
||||||
-->
|
|
||||||
|
|
||||||
**Summary**
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Explain the **motivation** for making this change.
|
|
||||||
What existing problem does the pull request solve?
|
|
||||||
Are there any linked issues?
|
|
||||||
-->
|
|
||||||
|
|
||||||
**Result**
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Demonstrate the code is solid.
|
|
||||||
Example: The exact commands you ran and their output,
|
|
||||||
screenshots / videos if the pull request changes UI.
|
|
||||||
-->
|
|
||||||
BIN
.github/demo.gif
vendored
BIN
.github/demo.gif
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 484 KiB |
33
.github/docsearch-logo.svg
vendored
33
.github/docsearch-logo.svg
vendored
|
|
@ -1,33 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg width="476px" height="78px" viewBox="0 0 476 78" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
||||||
<!-- Generator: Sketch 51.2 (57519) - http://www.bohemiancoding.com/sketch -->
|
|
||||||
<title>docsearch-logo</title>
|
|
||||||
<desc>Created with Sketch.</desc>
|
|
||||||
<defs></defs>
|
|
||||||
<g id="Docsearch-V3" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
||||||
<g id="DocSearch_V3" transform="translate(-482.000000, -120.000000)" fill-rule="nonzero">
|
|
||||||
<g id="Section---Hero" transform="translate(365.000000, 120.000000)">
|
|
||||||
<g id="docsearch-logo" transform="translate(117.000000, 0.000000)">
|
|
||||||
<path d="M36.4933333,77.2891139 L3.07416667,77.2891139 C1.3763513,77.2891139 6.2397743e-15,75.9187652 0,74.2283544 L36.5230833,74.2283544 C49.2916366,74.2900848 61.1233434,67.5648923 67.561314,56.586092 C73.9992847,45.6072916 74.0654385,32.0428244 67.7348557,21.002294 C61.404273,9.96176365 49.6387199,3.12248929 36.8701667,3.06075949 L0,3.06075949 C4.73181133e-15,1.3703487 1.3763513,-1.03507808e-16 3.07416667,0 L36.8701667,0 C47.1799191,0.0104632345 57.0627976,4.10020304 64.3426603,11.3686868 C71.622523,18.6371705 75.702425,28.4883865 75.684,38.7531646 C75.6245,60.1192405 57.9430833,77.2891139 36.4933333,77.2891139 Z" id="Shape" fill="#5468FF"></path>
|
|
||||||
<path d="M0,69.0448101 L23.71075,69.0448101 C26.6423682,69.0550684 29.4719692,67.9739447 31.6440833,66.0136709 L0,66.0136709 L0,69.0448101 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M0,60.8005063 L36.3743333,60.8005063 C37.1081667,59.8131646 37.7924167,58.8258228 38.4270833,57.7298734 L0,57.7298734 L0,60.8005063 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M0,52.5463291 L41.02525,52.5463291 C41.4318333,51.5589873 41.79875,50.5716456 42.1160833,49.4855696 L0,49.4855696 L0,52.5463291 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M0,44.3020253 L43.3060833,44.3020253 C43.4548333,43.3146835 43.5738333,42.2681013 43.64325,41.2412658 L0,41.2412658 L0,44.3020253 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M0,36.0577215 L43.6333333,36.0577215 C43.5639167,35.0210127 43.4449167,33.9941772 43.2961667,32.9870886 L0,32.9870886 L0,36.0577215 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M0,27.8035443 L42.1160833,27.8035443 C41.79875,26.7668354 41.4318333,25.74 41.02525,24.7427848 L0,24.7427848 L0,27.8035443 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M0,19.5592405 L38.4270833,19.5592405 C37.7959036,18.5046771 37.1107515,17.4830788 36.3743333,16.498481 L0,16.498481 L0,19.5592405 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M0,8.2443038 L0,11.3149367 L31.6738333,11.3149367 C29.502744,9.35300436 26.6724708,8.27162384 23.7405,8.28379747 L0,8.2443038 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M135.679833,50.0779747 C133.857467,53.3813109 131.098201,56.077032 127.7465,57.8286076 C123.979171,59.7595077 119.784913,60.7169242 115.549,60.6129114 L98.9683333,60.6129114 L98.9683333,16.923038 L115.539083,16.923038 C119.778245,16.8128696 123.978892,17.7490595 127.766333,19.6481013 C131.117724,21.3589797 133.880042,24.0267425 135.699667,27.3098734 C137.592163,30.796513 138.545364,34.711748 138.466417,38.6741772 C138.536692,42.6506388 137.576998,46.5780839 135.679833,50.0779747 Z M124.26575,47.8860759 C126.559806,45.7073418 127.706833,42.6367089 127.706833,38.6741772 C127.706833,34.7116456 126.559806,31.6443038 124.26575,29.4721519 C121.965083,27.2868354 118.745472,26.1941772 114.606917,26.1941772 L109.589083,26.1941772 L109.589083,51.1541772 L114.606917,51.1541772 C118.752083,51.1541772 121.971694,50.0648101 124.26575,47.8860759 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M175.455583,19.1248101 C178.778997,21.0125003 181.521982,23.7674194 183.388917,27.0926582 C185.363981,30.6103542 186.369802,34.5854361 186.304417,38.6149367 C186.357881,42.6599502 185.331208,46.6465125 183.329417,50.1668354 C181.438453,53.5109093 178.668441,56.2790801 175.31675,58.1741772 C168.344929,62.004212 159.886821,62.004212 152.915,58.1741772 C149.564192,56.2812621 146.796866,53.5123487 144.91225,50.1668354 C142.904645,46.6488476 141.877561,42.6606882 141.93725,38.6149367 C141.876602,34.5784542 142.903926,30.599591 144.91225,27.0926582 C146.806618,23.7647079 149.572472,21.0109162 152.915,19.1248101 C159.911199,15.2936429 168.389968,15.2936429 175.386167,19.1248101 L175.455583,19.1248101 Z M155.899917,29.4425316 C153.857083,31.6870886 152.832361,34.744557 152.82575,38.6149367 C152.819139,42.4853165 153.843861,45.5329114 155.899917,47.7577215 C160.475574,52.286235 167.865259,52.286235 172.440917,47.7577215 C174.496972,45.5 175.525,42.4524051 175.525,38.6149367 C175.525,34.7774684 174.500278,31.7298734 172.450833,29.4721519 C167.856159,24.9616095 160.474758,24.9616095 155.880083,29.4721519 L155.899917,29.4425316 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M225.108333,20.8822785 C228.807888,23.8729765 231.326363,28.0696152 232.218583,32.7303797 L220.992917,32.7303797 C220.23117,30.8024314 218.899911,29.1499189 217.175,27.9911392 C215.363487,26.8072206 213.232616,26.2010555 211.066333,26.2534177 C208.171408,26.151896 205.393594,27.3960957 203.5495,29.6202532 C201.6455,31.8779747 200.6935,34.9058228 200.6935,38.7037975 C200.6935,42.5017722 201.6455,45.5164557 203.5495,47.7478481 C205.39548,49.9695422 208.172008,51.2131656 211.066333,51.1146835 C213.22748,51.1823181 215.358116,50.5934386 217.175,49.4263291 C218.88921,48.2774286 220.218887,46.6440734 220.992917,44.7364557 L232.2285,44.7364557 C231.327412,49.393857 228.810628,53.5876774 225.11825,56.584557 C221.462306,59.5268354 216.834528,61.0012658 211.234917,61.0078481 C207.306799,61.0934167 203.428376,60.121217 200.00925,58.1939241 C196.799336,56.3367169 194.19876,53.5931576 192.522167,50.2951899 C190.71746,46.7136362 189.812301,42.7496616 189.884333,38.7432911 C189.811087,34.7336358 190.716268,30.7661764 192.522167,27.181519 C194.19876,23.8835513 196.799336,21.1399919 200.00925,19.2827848 C203.428395,17.367541 207.302981,16.4056772 211.225,16.498481 C216.831222,16.498481 221.459,17.9597468 225.108333,20.8822785 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M267.00625,54.6789873 C265.746742,56.6887326 263.937095,58.2986652 261.790083,59.3194937 C259.180122,60.5355687 256.320749,61.1272646 253.44025,61.0473418 C248.521583,61.0473418 244.468972,59.8526582 241.282417,57.4632911 C238.100352,55.0934231 236.179436,51.4065135 236.06625,47.4516456 L247.361333,47.4516456 C247.443743,48.9216964 248.07302,50.3085152 249.1265,51.3417722 C250.181667,52.3036655 251.574181,52.8142727 253.003917,52.7635443 C254.185488,52.8313439 255.34651,52.4342049 256.23675,51.6577215 C257.030471,50.8792089 257.458747,49.8042318 257.416833,48.6956962 C257.444121,47.6622237 257.050719,46.6616423 256.326,45.9212658 C255.556923,45.1409586 254.640152,44.5201389 253.628667,44.0946835 C252.557667,43.6207595 251.06025,43.1073418 249.15625,42.3964557 C246.832355,41.631224 244.562906,40.7109104 242.363333,39.6417722 C240.553223,38.7109244 238.997831,37.3554683 237.831417,35.6924051 C236.492213,33.6707801 235.829259,31.2793484 235.937333,28.86 C235.875197,26.4642059 236.568818,24.1092735 237.920667,22.1263291 C239.30137,20.182733 241.210816,18.6721146 243.424417,17.7721519 C245.969,16.7236969 248.703542,16.2094249 251.456917,16.261519 C256.335917,16.261519 260.213333,17.4134177 263.089167,19.7172152 C265.987262,22.0657533 267.758273,25.5206486 267.968167,29.2351899 L256.484667,29.2351899 C256.347009,27.9480419 255.789713,26.7412086 254.898,25.7992405 C253.972651,24.9274498 252.729216,24.4707768 251.456917,24.535443 C250.378453,24.4989504 249.322696,24.8493344 248.481917,25.5227848 C247.683067,26.2706544 247.264317,27.3365284 247.3415,28.4255696 C247.309951,29.3971776 247.666556,30.3416121 248.333167,31.0518987 C249.063733,31.8085442 249.940863,32.4097806 250.9115,32.8192405 C251.942833,33.2734177 253.430333,33.8493671 255.374,34.5470886 C257.740146,35.3085002 260.044246,36.2492259 262.266083,37.3610127 C264.095844,38.3308959 265.669168,39.7180446 266.8575,41.4091139 C268.217114,43.4522079 268.8907,45.8720704 268.781333,48.3205063 C268.79676,50.5633392 268.181911,52.7657739 267.00625,54.6789873 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<polygon id="Shape" fill="#21243D" points="285.262833 25.3253165 285.262833 34.4779747 300.137833 34.4779747 300.137833 42.4556962 285.262833 42.4556962 285.262833 52.1612658 301.952583 52.1612658 301.952583 60.6227848 274.691667 60.6227848 274.691667 16.923038 301.99225 16.923038 301.99225 25.3253165"></polygon>
|
|
||||||
<path d="M335.01475,52.6450633 L318.572917,52.6450633 L315.835917,60.6129114 L304.66975,60.6129114 L320.744667,17.2389873 L332.971917,17.2389873 L349.066667,60.6129114 L337.75175,60.6129114 L335.01475,52.6450633 Z M332.287667,44.6081013 L326.823583,28.5440506 L321.3,44.6081013 L332.287667,44.6081013 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M374.85,60.6129114 L365.349833,44.1144304 L362.95,44.1144304 L362.95,60.6129114 L352.339167,60.6129114 L352.339167,16.923038 L370.466833,16.923038 C373.508993,16.8435316 376.527773,17.4723779 379.28275,18.7594937 C381.540412,19.828704 383.423335,21.5486228 384.687333,23.6962025 C385.910213,25.8753713 386.529647,28.3388933 386.48225,30.8346835 C386.570466,33.7560242 385.638202,36.6173857 383.844417,38.9308861 C381.877062,41.2568908 379.174009,42.8479748 376.178833,43.443038 L386.611167,60.6227848 L374.85,60.6129114 Z M362.95,36.9167089 L369.534667,36.9167089 C371.207011,37.0657381 372.873584,36.5750076 374.1955,35.5443038 C375.253092,34.4466552 375.79366,32.9540184 375.683,31.436962 C375.767371,29.9270053 375.217814,28.4500295 374.16575,27.3592405 C372.881752,26.2782142 371.22085,25.7459206 369.544583,25.8782278 L362.95,25.8782278 L362.95,36.9167089 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<path d="M424.810167,20.8822785 C428.51301,23.8701397 431.032264,28.0680759 431.920417,32.7303797 L420.684833,32.7303797 C419.929851,30.793271 418.59756,29.1325854 416.866917,27.9713924 C415.055936,26.7863192 412.924694,26.1800488 410.75825,26.2336709 C407.862179,26.1339379 405.085496,27.3865779 403.251333,29.6202532 C401.347333,31.8779747 400.395333,34.9058228 400.395333,38.7037975 C400.395333,42.5017722 401.347333,45.5164557 403.251333,47.7478481 C405.092331,49.9704329 407.86646,51.2146235 410.75825,51.1146835 C412.923728,51.1718617 415.055069,50.5690076 416.866917,49.3868354 C418.583624,48.2406543 419.913992,46.606449 420.684833,44.696962 L431.920417,44.696962 C431.023346,49.3558882 428.505797,53.5509834 424.810167,56.5450633 C421.154222,59.4873418 416.526444,60.9617722 410.926833,60.9683544 C406.995369,61.0557096 403.113284,60.0834509 399.69125,58.1544304 C396.482141,56.2993186 393.884239,53.554945 392.214083,50.2556962 C390.405993,46.6753512 389.500641,42.7105345 389.57625,38.7037975 C389.499025,34.6937353 390.40442,30.7253384 392.214083,27.1420253 C393.884239,23.8427766 396.482141,21.0984029 399.69125,19.2432911 C403.114262,17.3177122 406.996288,16.3488797 410.926833,16.4392405 C416.526444,16.4787342 421.154222,17.9597468 424.810167,20.8822785 Z" id="Shape" fill="#21243D"></path>
|
|
||||||
<polygon id="Shape" fill="#21243D" points="475.167 16.923038 475.167 60.6129114 464.48675 60.6129114 464.48675 42.3865823 447.8565 42.3865823 447.8565 60.6129114 437.245667 60.6129114 437.245667 16.923038 447.8565 16.923038 447.8565 33.8559494 464.48675 33.8559494 464.48675 16.923038"></polygon>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 12 KiB |
11
.gitignore
vendored
11
.gitignore
vendored
|
|
@ -1,11 +0,0 @@
|
||||||
.DS_Store
|
|
||||||
coverage/
|
|
||||||
node_modules/
|
|
||||||
dist/
|
|
||||||
.idea/
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-error.log
|
|
||||||
dist-es5-module/
|
|
||||||
tmp
|
|
||||||
docs/.textlintcache
|
|
||||||
.netlify
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
dev/bundle.js*
|
|
||||||
demo.gif
|
|
||||||
docs/
|
|
||||||
1
.nvmrc
1
.nvmrc
|
|
@ -1 +0,0 @@
|
||||||
10.18.1
|
|
||||||
10
.prettierrc
10
.prettierrc
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"overrides": [
|
|
||||||
{
|
|
||||||
"files": "*.scss",
|
|
||||||
"options": {
|
|
||||||
"singleQuote": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
10
.travis.yml
10
.travis.yml
|
|
@ -1,10 +0,0 @@
|
||||||
language: node_js
|
|
||||||
script: "./scripts/test"
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- name: "[Documentation] Deploy"
|
|
||||||
script: "./scripts/travis/deploy"
|
|
||||||
362
CHANGELOG.md
362
CHANGELOG.md
|
|
@ -1,362 +0,0 @@
|
||||||
## [2.6.3](https://github.com/algolia/docsearch/compare/v2.6.2...v2.6.3) (2019-05-13)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **deps:** update dependency autocomplete.js to v0.35.0 ([2d67a21](https://github.com/algolia/docsearch/commit/2d67a21))
|
|
||||||
* **deps:** update dependency autocomplete.js to v0.36.0 ([bbd4ef5](https://github.com/algolia/docsearch/commit/bbd4ef5))
|
|
||||||
* **security:** Fix dependencies to avoid infected event-stream ([9f93ffb](https://github.com/algolia/docsearch/commit/9f93ffb))
|
|
||||||
* docsearch input should have aria-label (a11y) ([#687](https://github.com/algolia/docsearch/issues/687)) ([59d21f5](https://github.com/algolia/docsearch/commit/59d21f5))
|
|
||||||
* search input a11y issue ([#679](https://github.com/algolia/docsearch/issues/679)) ([a68d2a4](https://github.com/algolia/docsearch/commit/a68d2a4))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.6.2](https://github.com/algolia/docsearch/compare/v2.6.1...v2.6.2) (2018-11-22)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **ctrl-click:** Enable Ctrl-Click on suggestions ([#542](https://github.com/algolia/docsearch/issues/542)) ([a470c48](https://github.com/algolia/docsearch/commit/a470c48))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.6.1](https://github.com/algolia/docsearch/compare/v2.6.0...v2.6.1) (2018-11-07)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.6.0](https://github.com/algolia/docsearch/compare/v2.5.2...v2.6.0) (2018-11-07)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **deps:** update dependency algolia-aerial to v1.3.4 ([7e72fe0](https://github.com/algolia/docsearch/commit/7e72fe0))
|
|
||||||
* **deps:** update dependency algolia-aerial to v1.5.3 ([665438e](https://github.com/algolia/docsearch/commit/665438e))
|
|
||||||
* **deps:** update dependency algolia-frontend-components to v0.0.35 ([bd5c03f](https://github.com/algolia/docsearch/commit/bd5c03f))
|
|
||||||
* **deps:** update dependency autocomplete.js to ^0.30.0 ([21eb76a](https://github.com/algolia/docsearch/commit/21eb76a))
|
|
||||||
* **deps:** update dependency autocomplete.js to ^0.31.0 ([6c65eb2](https://github.com/algolia/docsearch/commit/6c65eb2))
|
|
||||||
* **deps:** update dependency chalk to v2 ([#323](https://github.com/algolia/docsearch/issues/323)) ([f8962bd](https://github.com/algolia/docsearch/commit/f8962bd))
|
|
||||||
* **deps:** update dependency deepmerge to v2 ([#324](https://github.com/algolia/docsearch/issues/324)) ([db212d0](https://github.com/algolia/docsearch/commit/db212d0))
|
|
||||||
* **deps:** update dependency progress to v2 ([#325](https://github.com/algolia/docsearch/issues/325)) ([a99347a](https://github.com/algolia/docsearch/commit/a99347a))
|
|
||||||
* **wording:** fixed case of DocSearch ([#262](https://github.com/algolia/docsearch/issues/262)) ([d451545](https://github.com/algolia/docsearch/commit/d451545))
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **css:** Update menu on small screen ([b5733d2](https://github.com/algolia/docsearch/commit/b5733d2))
|
|
||||||
* **docsearch:** Add custom classes on titles for better crawling ([fc79098](https://github.com/algolia/docsearch/commit/fc79098))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.5.2](https://github.com/algolia/docsearch/compare/v2.5.1...v2.5.2) (2017-12-07)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.5.1](https://github.com/algolia/docsearch/compare/v2.5.0...v2.5.1) (2017-11-28)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.5.0](https://github.com/algolia/docsearch/compare/v2.4.1...v2.5.0) (2017-11-28)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **autocompleteOptions:** allow cssClasses options ([#246](https://github.com/algolia/docsearch/issues/246)) ([6de70c3](https://github.com/algolia/docsearch/commit/6de70c3))
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **global:** Add responsive feature to the dropdown ([777d2d4](https://github.com/algolia/docsearch/commit/777d2d4))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.4.1](https://github.com/algolia/docsearch/compare/v2.4.0...v2.4.1) (2017-08-08)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.4.0](https://github.com/algolia/docsearch/compare/v2.3.3...v2.4.0) (2017-08-08)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.3.3](https://github.com/algolia/docsearch/compare/v2.3.2...v2.3.3) (2017-03-27)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **build:** fix badly handled webpack upgrade ([3cbfbb1](https://github.com/algolia/docsearch/commit/3cbfbb1))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.3.2](https://github.com/algolia/docsearch/compare/v2.3.1...v2.3.2) (2017-03-27)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.3.1](https://github.com/algolia/docsearch/compare/v2.3.0...v2.3.1) (2017-02-23)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.3.0](https://github.com/algolia/docsearch/compare/v2.2.1...v2.3.0) (2017-02-08)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.2.1](https://github.com/algolia/docsearch/compare/v2.2.0...v2.2.1) (2017-01-11)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.2.0](https://github.com/algolia/docsearch/compare/v2.1.8...v2.2.0) (2016-12-13)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.1.8](https://github.com/algolia/docsearch/compare/v2.1.7...v2.1.8) (2016-10-04)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.1.7](https://github.com/algolia/docsearch/compare/v2.1.6...v2.1.7) (2016-10-03)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **zepto:** upgrade autocomplete.js ([#150](https://github.com/algolia/docsearch/issues/150)) ([e024917](https://github.com/algolia/docsearch/commit/e024917))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.1.6](https://github.com/algolia/docsearch/compare/v2.1.5...v2.1.6) (2016-10-02)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.1.5](https://github.com/algolia/docsearch/compare/v2.1.4...v2.1.5) (2016-09-15)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **empty:** query should be escaped (self-XSS) ([#147](https://github.com/algolia/docsearch/issues/147)) ([3aed41b](https://github.com/algolia/docsearch/commit/3aed41b))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.1.4](https://github.com/algolia/docsearch/compare/v2.1.3...v2.1.4) (2016-08-03)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.1.3](https://github.com/algolia/docsearch/compare/v2.1.2...v2.1.3) (2016-08-03)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.1.2](https://github.com/algolia/docsearch/compare/v2.1.1...v2.1.2) (2016-07-22)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.1.1](https://github.com/algolia/docsearch/compare/v2.1.0...v2.1.1) (2016-07-22)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.1.0](https://github.com/algolia/docsearch/compare/v2.0.7...v2.1.0) (2016-07-07)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **doc:** docsearch header link ([#117](https://github.com/algolia/docsearch/issues/117)) ([66e68a9](https://github.com/algolia/docsearch/commit/66e68a9))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.0.7](https://github.com/algolia/docsearch/compare/v2.0.6...v2.0.7) (2016-06-28)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.0.6](https://github.com/algolia/docsearch/compare/v2.0.5...v2.0.6) (2016-06-28)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **typos:** no result page ([0f40e1d](https://github.com/algolia/docsearch/commit/0f40e1d))
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **docs:** new community header / footer ([#114](https://github.com/algolia/docsearch/issues/114)) ([af76d31](https://github.com/algolia/docsearch/commit/af76d31))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.0.5](https://github.com/algolia/docsearch/compare/v2.0.4...v2.0.5) (2016-06-21)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **DOM:** potential issue with simple layout if there is lvl0, lvl2 but no lvl1 ([57c0101](https://github.com/algolia/docsearch/commit/57c0101))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.0.4](https://github.com/algolia/docsearch/compare/v2.0.3...v2.0.4) (2016-06-21)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **DOM:** split simple and collumns template ([2a3b7eb](https://github.com/algolia/docsearch/commit/2a3b7eb))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.0.3](https://github.com/algolia/docsearch/compare/v2.0.2...v2.0.3) (2016-06-20)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.0.2](https://github.com/algolia/docsearch/compare/v2.0.1...v2.0.2) (2016-06-14)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **dom:** better handling of simple design ([6bba640](https://github.com/algolia/docsearch/commit/6bba640))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.0.1](https://github.com/algolia/docsearch/compare/v2.0.0...v2.0.1) (2016-06-14)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [2.0.0](https://github.com/algolia/docsearch/compare/v1.3.0...v2.0.0) (2016-06-14)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **v2:** modification for v2 ([#112](https://github.com/algolia/docsearch/issues/112)) ([f0a7e6b](https://github.com/algolia/docsearch/commit/f0a7e6b)), closes [#92](https://github.com/algolia/docsearch/issues/92) [#102](https://github.com/algolia/docsearch/issues/102)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [1.3.0](https://github.com/algolia/docsearch/compare/1.2.0...v1.3.0) (2016-06-12)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [1.2.0](https://github.com/algolia/docsearch/compare/v1.1.3...1.2.0) (2016-06-10)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **DOM:** add an align class ([#108](https://github.com/algolia/docsearch/issues/108)) ([9421897](https://github.com/algolia/docsearch/commit/9421897))
|
|
||||||
* **serve:** Watch and serve all needed files ([#91](https://github.com/algolia/docsearch/issues/91)) ([ef83775](https://github.com/algolia/docsearch/commit/ef83775))
|
|
||||||
* **website:** add echo ([#94](https://github.com/algolia/docsearch/issues/94)) ([8a34ecb](https://github.com/algolia/docsearch/commit/8a34ecb))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.1.3](https://github.com/algolia/docsearch/compare/v1.1.2...v1.1.3) (2016-04-04)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **autocomplete.js:** upgrade the underlying autocomplete.js to ensur… ([4d7022e](https://github.com/algolia/docsearch/commit/4d7022e)), closes [#89](https://github.com/algolia/docsearch/issues/89)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.1.2](https://github.com/algolia/docsearch/compare/v1.1.1...v1.1.2) (2016-03-24)
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **website:** React :raised_hands:, popped out on the top with React ([db9c100](https://github.com/algolia/docsearch/commit/db9c100))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.1.1](https://github.com/algolia/docsearch/compare/v1.1.0...v1.1.1) (2016-03-16)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **algoliaOptions:** ensure we keep default options ([b284dda](https://github.com/algolia/docsearch/commit/b284dda)), closes [#78](https://github.com/algolia/docsearch/issues/78)
|
|
||||||
* **autocomplete:** auto select top result ([473824a](https://github.com/algolia/docsearch/commit/473824a)), closes [#81](https://github.com/algolia/docsearch/issues/81)
|
|
||||||
* **dev:** Fixed the dev example, targeting an existing index ([df13e34](https://github.com/algolia/docsearch/commit/df13e34))
|
|
||||||
* **website:** responsive logo ([b856d67](https://github.com/algolia/docsearch/commit/b856d67))
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **serve:** Add `npm run serve` to expose js and css locally ([31e5d13](https://github.com/algolia/docsearch/commit/31e5d13))
|
|
||||||
* **website:** community header ([366cc0d](https://github.com/algolia/docsearch/commit/366cc0d))
|
|
||||||
* **website:** Logo Update - Og screen + favicon ([c7eb54a](https://github.com/algolia/docsearch/commit/c7eb54a))
|
|
||||||
* **website:** removed demos ([6d8eb34](https://github.com/algolia/docsearch/commit/6d8eb34))
|
|
||||||
* **website:** update ([9498e3b](https://github.com/algolia/docsearch/commit/9498e3b))
|
|
||||||
* **website:** updated logo ([fa413d9](https://github.com/algolia/docsearch/commit/fa413d9))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [1.1.0](https://github.com/algolia/docsearch/compare/v1.0.2...v1.1.0) (2016-02-01)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **dropdown:** Visually group suggestions together ([592c8f2](https://github.com/algolia/docsearch/commit/592c8f2))
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **website:** ensure the inputs are mandatory ([e59d132](https://github.com/algolia/docsearch/commit/e59d132))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.0.2](https://github.com/algolia/docsearch/compare/v1.0.1...v1.0.2) (2015-12-28)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **debut:** do not enable debug by default ([188f49e](https://github.com/algolia/docsearch/commit/188f49e))
|
|
||||||
* **url:** Removes concatenation of URL with hash if it contains a hash ([348df1c](https://github.com/algolia/docsearch/commit/348df1c)), closes [#53](https://github.com/algolia/docsearch/issues/53)
|
|
||||||
* **usage:** fixed usage to match the latest prototype version ([f6edc9e](https://github.com/algolia/docsearch/commit/f6edc9e))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.0.1](https://github.com/algolia/docsearch/compare/v1.0.0...v1.0.1) (2015-12-24)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **handleSelected:** ensure we're calling setVal on the right object ([31abbd7](https://github.com/algolia/docsearch/commit/31abbd7)), closes [#51](https://github.com/algolia/docsearch/issues/51)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [1.0.0](https://github.com/algolia/docsearch/compare/v0.0.7...v1.0.0) (2015-12-24)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **isSubCategoryHeader:** ensure we hide the content of the left column if this flag is not set ([0e04ce4](https://github.com/algolia/docsearch/commit/0e04ce4)), closes [#47](https://github.com/algolia/docsearch/issues/47)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.0.7](https://github.com/algolia/docsearch/compare/v0.0.6...v0.0.7) (2015-12-22)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **appId:** Allow passing a custom appId ([e1777d3](https://github.com/algolia/docsearch/commit/e1777d3)), closes [#21](https://github.com/algolia/docsearch/issues/21)
|
|
||||||
* **css:** Renaming all `ads-` prefix to `algolia-docsearch-` ([c6fc53f](https://github.com/algolia/docsearch/commit/c6fc53f))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.0.6](https://github.com/algolia/docsearch/compare/v0.0.5...v0.0.6) (2015-12-16)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.0.5](https://github.com/algolia/docsearch/compare/v0.0.4...v0.0.5) (2015-12-16)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.0.4](https://github.com/algolia/docsearch/compare/v0.0.3...v0.0.4) (2015-12-16)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.0.3](https://github.com/algolia/docsearch/compare/v0.0.2...v0.0.3) (2015-12-16)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.0.2](https://github.com/algolia/docsearch/compare/bdac9dd...v0.0.2) (2015-12-16)
|
|
||||||
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **colors:** Reduce number of colors ([125d1c7](https://github.com/algolia/docsearch/commit/125d1c7))
|
|
||||||
* **snippet:** Fix typo in method name ([751dfdb](https://github.com/algolia/docsearch/commit/751dfdb))
|
|
||||||
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
* **gh-pages:** Add gh-pages deploy script ([ab1a299](https://github.com/algolia/docsearch/commit/ab1a299))
|
|
||||||
* **main:** Add main wrapper ([bdac9dd](https://github.com/algolia/docsearch/commit/bdac9dd))
|
|
||||||
* **styling:** Set grayscale as default, add styling as external file ([5d8cca8](https://github.com/algolia/docsearch/commit/5d8cca8))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
||||||
Hi (future) collaborator!
|
|
||||||
|
|
||||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
||||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
||||||
|
|
||||||
|
|
||||||
- [Where to start?](#where-to-start)
|
|
||||||
- [Development workflow](#development-workflow)
|
|
||||||
- [Requirements](#requirements)
|
|
||||||
- [Build](#build)
|
|
||||||
- [Serve](#serve)
|
|
||||||
- [Test](#test)
|
|
||||||
- [Docs](#docs)
|
|
||||||
- [Release](#release)
|
|
||||||
|
|
||||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
||||||
|
|
||||||
# Where to start?
|
|
||||||
|
|
||||||
Have a fix or a new feature? [Search for corresponding
|
|
||||||
issues][14] first then create a new
|
|
||||||
one.
|
|
||||||
|
|
||||||
# Development workflow
|
|
||||||
|
|
||||||
## Requirements
|
|
||||||
|
|
||||||
To run this project, you will need:
|
|
||||||
|
|
||||||
- Node.js >= v8.7.0, use nvm - [install
|
|
||||||
instructions][15]
|
|
||||||
- Yarn
|
|
||||||
|
|
||||||
## Build
|
|
||||||
|
|
||||||
`yarn run build` will build all files in `./dist`. This includes regular and
|
|
||||||
minified files for `<script>` inclusion, as well as classes for `import`ing.
|
|
||||||
|
|
||||||
The command itself is split into `yarn run build:js` and `yarn run build:css` if
|
|
||||||
you want to build a subset.
|
|
||||||
|
|
||||||
## Serve
|
|
||||||
|
|
||||||
You can have all this files served on localhost, along with live-reload, with
|
|
||||||
the `yarn run serve` command.
|
|
||||||
|
|
||||||
## Test
|
|
||||||
|
|
||||||
You can run all tests with `yarn run test`, and `yarn run test:watch` will run
|
|
||||||
them with auto-reload.
|
|
||||||
|
|
||||||
## Docs
|
|
||||||
|
|
||||||
The documentation lives in the `./docs` folder. You should start by installing
|
|
||||||
its dependencies with `cd ./docs && yarn install`. Then:
|
|
||||||
|
|
||||||
- `yarn docs:build` will build the docs website in `./docs/dist`.
|
|
||||||
- `yarn docs:serve` will do the same, but with live-reload enabled
|
|
||||||
- `yarn docs:deploy` will deploy the doc website manually
|
|
||||||
|
|
||||||
Refer to `./docs/README.md` for more information
|
|
||||||
|
|
||||||
## Release
|
|
||||||
|
|
||||||
`npm run release` will guide you through the release process. Note that you have
|
|
||||||
to use `npm` and not `yarn` for this one otherwise it won't deploy to npm.
|
|
||||||
|
|
||||||
[1]: #where-to-start
|
|
||||||
[2]: #development-workflow
|
|
||||||
[3]: #requirements
|
|
||||||
[4]: #launch
|
|
||||||
[5]: #local-build
|
|
||||||
[6]: #commit-message-guidelines
|
|
||||||
[7]: #revert
|
|
||||||
[8]: #type
|
|
||||||
[9]: #scope
|
|
||||||
[10]: #subject
|
|
||||||
[11]: #body
|
|
||||||
[12]: #footer
|
|
||||||
[13]: #releasing
|
|
||||||
[14]: https://github.com/algolia/docsearch/issues
|
|
||||||
[15]: https://github.com/creationix/nvm#install-script
|
|
||||||
21
LICENSE
21
LICENSE
|
|
@ -1,21 +0,0 @@
|
||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2015 Algolia
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
4
index.js
4
index.js
|
|
@ -1,4 +0,0 @@
|
||||||
/* eslint-disable import/no-commonjs */
|
|
||||||
|
|
||||||
import docsearch from './src/lib/main';
|
|
||||||
module.exports = docsearch;
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/* eslint-disable import/no-commonjs */
|
|
||||||
module.exports = {
|
|
||||||
bail: true,
|
|
||||||
resetMocks: true,
|
|
||||||
restoreMocks: true,
|
|
||||||
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/docs/'],
|
|
||||||
};
|
|
||||||
11
netlify.toml
11
netlify.toml
|
|
@ -1,11 +0,0 @@
|
||||||
[Settings]
|
|
||||||
|
|
||||||
[build]
|
|
||||||
[build.environment]
|
|
||||||
NODE_ENV = "development"
|
|
||||||
YARN_VERSION = "1.9.4"
|
|
||||||
|
|
||||||
# Deploy previews on each PR
|
|
||||||
[context.deploy-preview]
|
|
||||||
command = "./scripts/netlify/deploy-preview"
|
|
||||||
publish = "docs/dist"
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
rm -rf dist
|
|
||||||
yarn run build:js
|
|
||||||
yarn run build:css
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e # exit when error
|
|
||||||
|
|
||||||
NAME='docsearch'
|
|
||||||
LICENSE="/*! ${NAME} ${VERSION:-UNRELEASED} | © Algolia | github.com/algolia/docsearch */"
|
|
||||||
DIST_DIR="dist/cdn"
|
|
||||||
DIST_DIR_NPM="dist/npm"
|
|
||||||
DIST_FILE="$DIST_DIR/${NAME}.css"
|
|
||||||
DIST_FILE_MIN="$DIST_DIR/${NAME}.min.css"
|
|
||||||
DIST_FILE_MAP="$DIST_DIR/${NAME}.min.css.map"
|
|
||||||
|
|
||||||
mkdir -p "$DIST_DIR"
|
|
||||||
|
|
||||||
# ./dist/cdn/docsearch.css
|
|
||||||
echo "$LICENSE" > "$DIST_FILE";
|
|
||||||
node-sass --output-style expanded ./src/styles/main.scss \
|
|
||||||
| postcss --use autoprefixer -o "$DIST_FILE"
|
|
||||||
|
|
||||||
# copy styles
|
|
||||||
cp -r src/styles $DIST_DIR_NPM
|
|
||||||
|
|
||||||
# ./dist/cdn/docsearch.min.css
|
|
||||||
postcss "$DIST_FILE" --use cssnano --map "$DIST_FILE_MAP" -o "$DIST_FILE_MIN"
|
|
||||||
|
|
||||||
gzip_size=$(gzip -9 < $DIST_FILE_MIN | wc -c | pretty-bytes)
|
|
||||||
echo "=> $DIST_FILE_MIN gzipped will weight $gzip_size-bytes"
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e # exit when error
|
|
||||||
|
|
||||||
NAME='docsearch'
|
|
||||||
LICENSE="/*! ${NAME} ${VERSION:-UNRELEASED} | © Algolia | github.com/algolia/docsearch */"
|
|
||||||
DIST_DIR_CDN="dist/cdn"
|
|
||||||
DIST_DIR_NPM="dist/npm"
|
|
||||||
DIST_FILE="$DIST_DIR_CDN/${NAME}.js"
|
|
||||||
DIST_FILE_MIN="$DIST_DIR_CDN/${NAME}.min.js"
|
|
||||||
DIST_FILE_SOURCEMAP="$DIST_DIR_CDN/${NAME}.js.map"
|
|
||||||
DIST_FILE_SOURCEMAP_MIN="$DIST_DIR_CDN/${NAME}.min.js.map"
|
|
||||||
|
|
||||||
mkdir -p "$DIST_DIR_CDN" "$DIST_DIR_NPM"
|
|
||||||
|
|
||||||
# docsearch.js as one ES5 file + minified version and source maps
|
|
||||||
webpack --config webpack.config.jsdelivr.babel.js
|
|
||||||
echo "$LICENSE" | cat - "${DIST_FILE}" > /tmp/out && mv /tmp/out "${DIST_FILE}"
|
|
||||||
|
|
||||||
uglifyjs --version
|
|
||||||
|
|
||||||
uglifyjs "${DIST_FILE}" \
|
|
||||||
--source-map "content='${DIST_FILE_SOURCEMAP}',filename='${DIST_FILE_SOURCEMAP_MIN}'" \
|
|
||||||
--beautify "beautify=false,preamble='$LICENSE'" \
|
|
||||||
--output "${DIST_FILE_MIN}" \
|
|
||||||
--verbose
|
|
||||||
|
|
||||||
# docsearch as several ES5 files, to be `require`d
|
|
||||||
babel -q index.js -o "$DIST_DIR_NPM/index.js"
|
|
||||||
declare -a sources=("src")
|
|
||||||
for source in "${sources[@]}"
|
|
||||||
do
|
|
||||||
babel -q --out-dir "$DIST_DIR_NPM/${source}" ${source}
|
|
||||||
done
|
|
||||||
|
|
||||||
gzip_size=$(gzip -9 < $DIST_FILE_MIN | wc -c | pretty-bytes)
|
|
||||||
echo "=> $DIST_FILE_MIN gzipped will weight $gzip_size-bytes"
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
/* eslint no-console:0 max-len:0 */
|
|
||||||
import fs from 'fs';
|
|
||||||
import path from 'path';
|
|
||||||
|
|
||||||
import mversion from 'mversion';
|
|
||||||
|
|
||||||
import semver from 'semver';
|
|
||||||
import currentVersion from '../src/lib/version.js';
|
|
||||||
|
|
||||||
if (!process.env.VERSION) {
|
|
||||||
throw new Error(
|
|
||||||
'bump: Usage is VERSION=MAJOR.MINOR.PATCH scripts/bump-package-version.js'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
const newVersion = process.env.VERSION;
|
|
||||||
|
|
||||||
if (!semver.valid(newVersion)) {
|
|
||||||
throw new Error(
|
|
||||||
`bump: Provided new version (${newVersion}) is not a valid version per semver`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (semver.gte(currentVersion, newVersion)) {
|
|
||||||
throw new Error(
|
|
||||||
`bump: Provided new version is not higher than current version (${newVersion} <= ${currentVersion})`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`Bumping ${newVersion}`);
|
|
||||||
|
|
||||||
console.log('..Updating src/lib/version.js');
|
|
||||||
|
|
||||||
const versionFile = path.join(__dirname, '../src/lib/version.js');
|
|
||||||
const newContent = `export default '${newVersion}';\n`;
|
|
||||||
fs.writeFileSync(versionFile, newContent);
|
|
||||||
|
|
||||||
console.log('..Updating package.json');
|
|
||||||
|
|
||||||
mversion.update(newVersion);
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
set -e
|
|
||||||
|
|
||||||
eslint ./src ./*.js
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Compare current branch with master to see if there are changes in the docs/
|
|
||||||
# folder
|
|
||||||
set -x
|
|
||||||
|
|
||||||
# Remote urls are not always set on Netlify
|
|
||||||
git remote set-url origin https://github.com/algolia/docsearch.git
|
|
||||||
git fetch
|
|
||||||
|
|
||||||
CHANGES_IN_DOCS="$(git diff --name-only origin/master | grep '^docs/')"
|
|
||||||
if [ "$CHANGES_IN_DOCS" = "" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
# This script is triggered on every new PR (see netlify.toml for details)
|
|
||||||
# It will create a live preview of the PR
|
|
||||||
#
|
|
||||||
# Note: Check the following link for a list of available environment variables:
|
|
||||||
# https://www.netlify.com/docs/continuous-deployment/#build-environment-variables
|
|
||||||
if ! ./scripts/netlify/is-deploy-preview; then
|
|
||||||
echo "✘ This script should only be run on Netlify, for deploy previews";
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! ./scripts/netlify/changes-in-docs-since-master; then
|
|
||||||
echo "✘ This PR does not have any changes done in ./docs."
|
|
||||||
mkdir -p ./docs/dist
|
|
||||||
echo "No deploy preview available as this PR does not change the documentation." > ./dist/index.html
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Full build if documentation changed
|
|
||||||
cd ./docs || exit
|
|
||||||
yarn install
|
|
||||||
yarn run build
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
if [ "$CONTEXT" = "deploy-preview" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
exit 1
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>DocSearch playground</title>
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap.min.css" />
|
|
||||||
<link rel="stylesheet" href="http://127.0.0.1:8080/docsearch.min.css" />
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<div class="mt-1">
|
|
||||||
<h1>Assets are served from http://127.0.0.1:8080/ </h1>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="search" placeholder="DocSearch input" class="form-control" id="q">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- at the end of the BODY -->
|
|
||||||
<script src="http://127.0.0.1:8080/docsearch.js"></script>
|
|
||||||
<script>
|
|
||||||
docsearch({
|
|
||||||
apiKey: '25626fae796133dc1e734c6bcaaeac3c',
|
|
||||||
indexName: 'docsearch',
|
|
||||||
inputSelector: '#q',
|
|
||||||
handleSelected(input, event, suggestion, datasetNumber, context) {
|
|
||||||
console.info(input);
|
|
||||||
console.info(event);
|
|
||||||
console.info(suggestion);
|
|
||||||
console.info(datasetNumber);
|
|
||||||
console.info(context);
|
|
||||||
},
|
|
||||||
debug: true // Set debug to true if you want to inspect the dropdown
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<style>
|
|
||||||
|
|
||||||
.container {
|
|
||||||
margin: 10%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-group {
|
|
||||||
width: 60%;
|
|
||||||
margin: auto;
|
|
||||||
margin-top: 10%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|
@ -1,86 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e # exit when error
|
|
||||||
|
|
||||||
# When running through yarn, this variable is changed, preventing the publishing
|
|
||||||
# to actually work. We revert it to its default value.
|
|
||||||
export npm_config_registry='https://registry.npmjs.org/'
|
|
||||||
|
|
||||||
if ! npm owner ls | grep -q "$(npm whoami)"
|
|
||||||
then
|
|
||||||
echo "Release: Not an owner of the npm repo, ask for it"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
currentBranch=$(git rev-parse --abbrev-ref HEAD)
|
|
||||||
if [ "$currentBranch" != 'master' ]; then
|
|
||||||
echo "Release: You must be on master"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n $(git status --porcelain) ]]; then
|
|
||||||
echo "Release: Working tree is not clean (git status)"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Release: update working tree"
|
|
||||||
git pull origin master
|
|
||||||
git fetch origin --tags
|
|
||||||
|
|
||||||
echo "Release: yarn install"
|
|
||||||
yarn install
|
|
||||||
|
|
||||||
currentVersion=$(json version < package.json)
|
|
||||||
|
|
||||||
# header
|
|
||||||
echo ""
|
|
||||||
echo "Release: current version is $currentVersion"
|
|
||||||
echo "Release: a changelog will be generated only if a fix/feat/performance/breaking token is found in git log"
|
|
||||||
echo "Release: you must choose a new ve.rs.ion (semver)"
|
|
||||||
echo "Release: press q to exit the next screen"
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
|
|
||||||
# preview changelog
|
|
||||||
read -rp "=> Release: press [ENTER] to view changes since latest version.."
|
|
||||||
|
|
||||||
conventional-changelog --preset angular --output-unreleased | less
|
|
||||||
|
|
||||||
# choose and bump new version
|
|
||||||
echo "=> Release: please type the new chosen version > "
|
|
||||||
read -re newVersion
|
|
||||||
VERSION=$newVersion babel-node ./scripts/bump-package-version.js
|
|
||||||
|
|
||||||
# build new version
|
|
||||||
NODE_ENV=production VERSION=$newVersion yarn run build
|
|
||||||
|
|
||||||
# update changelog
|
|
||||||
echo
|
|
||||||
echo "Release: update changelog"
|
|
||||||
changelog=$(conventional-changelog -p angular)
|
|
||||||
conventional-changelog --preset angular --infile CHANGELOG.md --same-file -r 0
|
|
||||||
|
|
||||||
# regenerate readme TOC
|
|
||||||
echo
|
|
||||||
echo "Release: generate TOCS"
|
|
||||||
yarn run doctoc
|
|
||||||
|
|
||||||
# git add and tag
|
|
||||||
commitMessage="v$newVersion\n\n$changelog"
|
|
||||||
git add src/lib/version.js package.json CHANGELOG.md README.md CONTRIBUTING.md
|
|
||||||
echo "$commitMessage" | git commit --file -
|
|
||||||
git tag "v$newVersion"
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Release: almost done, check everything in another terminal tab."
|
|
||||||
read -rp "=> Release: when ready, press [ENTER] to push to github and publish the package"
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Release: push to github, publish on npm"
|
|
||||||
git push origin master
|
|
||||||
git push origin --tags
|
|
||||||
npm publish
|
|
||||||
|
|
||||||
echo "Release: Package was published to npm."
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
yarn run build:css
|
|
||||||
|
|
||||||
echo "Find all files at http://127.0.0.1:8080/";
|
|
||||||
parallelshell \
|
|
||||||
'webpack --config webpack.serve.config.babel.js -w' \
|
|
||||||
'onchange "./src/styles/*.scss" -- yarn run build:css' \
|
|
||||||
'live-server --no-browser ./dist/cdn' \
|
|
||||||
"${BROWSER} scripts/playground.html"
|
|
||||||
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
set -e
|
|
||||||
|
|
||||||
jest \
|
|
||||||
--no-cache \
|
|
||||||
./src/lib/
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Will run the test and export the coverage information in ./coverage
|
|
||||||
# This file will then be read by Travis to push it to Coveralls
|
|
||||||
#
|
|
||||||
# The command is long and was quite hard to write correctly.
|
|
||||||
# We need babel-istanbul and not istanbul
|
|
||||||
# We need the _mocha and not mocha
|
|
||||||
# We need to use full path for each binaries
|
|
||||||
# We need to run everything through babel-node
|
|
||||||
|
|
||||||
npm_bin="$(npm bin)"
|
|
||||||
babel_istanbul_bin="${npm_bin}/babel-istanbul"
|
|
||||||
mocha_bin="${npm_bin}/_mocha"
|
|
||||||
|
|
||||||
BABEL_ENV=test \
|
|
||||||
node "$babel_istanbul_bin" cover "$mocha_bin" \
|
|
||||||
--report lcov -- \
|
|
||||||
--timeout 6000 -R spec --reporter dot \
|
|
||||||
./test/helpers.js ./test/*-test.js
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
set -e
|
|
||||||
jest \
|
|
||||||
--no-cache \
|
|
||||||
--watch \
|
|
||||||
--no-watchman \
|
|
||||||
./src/lib/
|
|
||||||
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Check if the current git repo has changes done in the ./docs folder since last
|
|
||||||
# push to master
|
|
||||||
CHANGES_IN_DOCS="$(git diff --name-only master | grep '^docs/')"
|
|
||||||
if [ "$CHANGES_IN_DOCS" = "" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Will deploy the documentation website on gh-pages when new commits on master
|
|
||||||
# Only if it detects changes in ./docs folder
|
|
||||||
# Note that this will be triggered even for PR targeting master
|
|
||||||
set -x
|
|
||||||
|
|
||||||
if ./scripts/travis/is-pr; then
|
|
||||||
echo "✘ Documentation is not deployed for pull requests";
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! ./scripts/travis/on-master; then
|
|
||||||
echo "✘ Documentation is only deployed on the master branch";
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! ./scripts/travis/changes-in-docs-since-master; then
|
|
||||||
echo "✘ Documentation is not deployed if there are no changes in ./docs";
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ./docs || exit 1
|
|
||||||
yarn install
|
|
||||||
yarn run deploy
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Check if in a Pull Request
|
|
||||||
if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
exit 1
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Check if on master
|
|
||||||
if [ "$TRAVIS_BRANCH" = "master" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
import webpack from 'webpack';
|
|
||||||
import { join } from 'path';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
entry: './index.js',
|
|
||||||
devtool: 'source-map',
|
|
||||||
output: {
|
|
||||||
path: join(__dirname, 'dist/cdn'),
|
|
||||||
filename: 'docsearch.js',
|
|
||||||
library: 'docsearch',
|
|
||||||
libraryTarget: 'umd',
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.js$/,
|
|
||||||
exclude: /node_modules/,
|
|
||||||
loader: 'babel-loader',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new webpack.DefinePlugin({
|
|
||||||
'process.env': {
|
|
||||||
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
import baseConfig from './webpack.config.jsdelivr.babel';
|
|
||||||
import { join } from 'path';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
...baseConfig,
|
|
||||||
devServer: {
|
|
||||||
contentBase: join(__dirname, 'dist/cdn'),
|
|
||||||
host: '0.0.0.0',
|
|
||||||
compress: true,
|
|
||||||
hot: true,
|
|
||||||
inline: true,
|
|
||||||
noInfo: true,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
Loading…
Reference in a new issue