1
0
Fork 0
Commit graph

70 commits

Author SHA1 Message Date
Pixelastic
df7c60ac17 docs(deploy-preview): Re-enable deploy previews for the doc
This re-enable deploy-previews through Netlify. It will check if
changes where made to the ./docs folder and build + deploy the preview
if so. Otherwise, it will deploy a dummy preview.

This also removes the netlify script to deploy in production whenever
we push to master, as this is now handled by Travis.
2018-12-14 12:05:41 +01:00
Pixelastic
6dd556bd3e chore(typo): Fix typo 2018-12-03 11:05:42 +01:00
Pixelastic
b8a1c309e9 docs(deploy): Automatic deployment when doc pushed to master 2018-12-03 11:05:42 +01:00
Tim Carry
a470c480dd
feat(ctrl-click): Enable Ctrl-Click on suggestions (#542)
* feat(ctrl-click): Enable Ctrl-Click on suggestions

This updates the underlying autocomplete.js to a version that passes
the selection context (click or keyboard) to the
`autocomplete:selected` event.

With the default `handleSelected, and in the case of a click, it will
do nothing (as each suggestion already being a `<a href>`, it will
already follow the link), but manually change the location for
keyboard navigation.

When a custom `handleSelected` is set though, default browser clicks
on suggestions are disabled and only `handleSelected` is called. This
is to keep backward compatibility with all the live websites that
might already use `handleSelected`.

* fix(test): Making sure it does not crash when no context is passed
2018-11-21 15:47:41 +01:00
Mathias Bynens
59a9617512 Omit redundant type="text/javascript" (#543)
https://mathiasbynens.be/notes/html5-levels#type-attributes
2018-11-21 08:49:24 +01:00
Pixelastic
efccb73879 Re-enable branch protection 2018-11-07 15:28:02 +01:00
Pixelastic
799c1a335f Updating release script
Script was mentioning an update to shrinkwrap that we no longer use.
Also it was calling `yarn run doctoc` that had been remove in an old
commit, and re-added.
2018-11-07 15:11:10 +01:00
Pixelastic
7cfee31a98 Use yarn for building instead of npm 2018-11-07 15:00:28 +01:00
Pixelastic
de96a43c2c WIP: Disabling check on branch 2018-11-07 14:59:23 +01:00
Pixelastic
37d39a0297 Replace printf with echo
`printf` displays everything on the same line, and with the way yarn
itself outputs its error messages, it would override our custom
messages on the terminal, preventing us to know why things failed.

Using echo instead fixes the issue.

Other fixes are `shellcheck` warnings (`read` without `-r` will fail
on input containing `\`).
2018-11-07 14:56:41 +01:00
Pixelastic
ca8ac2c760 Allow release from yarn run
Running `yarn run release` causes issues as it can't communicate with
the proper npm registry. This happens because yarn overrides the
`npm_config_registry` variable, on which the publishing depends.

In this commit I revert the value to its default, allowing the release
script to be run either with `npm run release` or `yarn run release`.
2018-11-07 14:50:23 +01:00
Tim Carry
cc0d501012
Add test that normal click is disable with custom handleSelected (#523) 2018-11-06 09:32:34 +01:00
Pixelastic
5e85d7b2ec Add tests (still one test WIP) 2018-11-05 10:22:29 +01:00
Pixelastic
89313450dc Disable links with handleSelected is defined 2018-11-05 10:22:29 +01:00
Pixelastic
6442e032d8 Serve playground 2018-11-05 10:22:29 +01:00
Tim Carry
dd6f2f1611
Better explanation of playground
Co-Authored-By: s-pace <sylvain.pace@algolia.com>
2018-11-02 11:40:54 +01:00
s-pace
b5abdce7e0 test compatibility with multi selectors 2018-11-02 10:05:11 +01:00
s-pace
9e80e72db7 change args.inputSelector as a string 2018-11-02 09:30:05 +01:00
s-pace
b8c55699ef adding multi input feature closes #230 2018-11-01 22:50:00 +01:00
s-pace
8e52c20a02 add a playground to use served assets 2018-11-01 15:21:03 +01:00
Tim Carry
dc299069d4
docs(deploy): Document how to deploy the website (#475) 2018-10-08 13:06:42 +02:00
Pixelastic
36d176514d Deploy documentation website on push to master 2018-08-27 20:11:56 +02:00
Pixelastic
0c5b610159 docs(deploy): Update deploy documentation system 2018-08-20 13:51:59 +02:00
Pixelastic
b53d269bfe Update CONTRIBUTING and fix tests 2018-08-20 13:24:55 +02:00
Pixelastic
2a2b82fb6c Move all new docs to docs/ subfolder 2018-08-20 13:23:35 +02:00
Pixelastic
a15ac23cbc WIP 2018-08-20 13:21:04 +02:00
Vincent Voyer
7e364e25ba
Update release 2018-05-28 21:41:56 +02:00
Sylvain Pace
498675f9a3
Revert "Revert "doc(site): Fixed typos (#277)" (#278)" (#279)
This reverts commit 883894f963.
2018-03-12 16:19:09 +01:00
Sylvain Pace
883894f963
Revert "doc(site): Fixed typos (#277)" (#278)
This reverts commit d3f0aaca85.
2018-03-11 21:17:19 +01:00
Pascal Borreli
d3f0aaca85 doc(site): Fixed typos (#277) 2018-03-11 21:01:45 +01:00
Maxime
1d3dd207c0 move community website to middleman 2018-02-07 10:56:52 +01:00
vvo
1e72486468 chore(build): comment fix 2017-12-07 13:15:23 +01:00
vvo
67ad98332c chore(build): provide styles in npm package
fixes #251
2017-12-07 13:14:00 +01:00
Vincent Voyer
186dfcce53
chore(deps): fix all deps (#255)
* chore(deps): fix all deps

* test
2017-12-07 12:49:06 +01:00
vvo
68d3e0b827 chore(build): fix minification since uglifyjs 3 2017-11-28 17:25:01 +01:00
Frank Taillandier
994723e482 docs(website): bump jekyll to latest 2017-10-18 10:51:33 +02:00
Vincent Voyer
5afc05ecd2 chore(cleaning): upgrade all deps, prepare renovate (#206) 2017-10-18 00:43:51 +02:00
Lucas Bonomi
9663e01543 docs(website): new design and logo 2017-10-17 22:16:04 +02:00
Vincent Voyer
28159c2801 chore(docs): precise how to run project (#200)
Remove redundant messages in README and CONTRIBUTING. Move GIF to
bootstrap.

Allow netlify deploys to work.
2017-10-17 17:02:45 +02:00
vvo
f3c50cb115 chore(ci): fix travis 2017-09-11 21:15:57 +02:00
vvo
7508049fb9 chore(release): fix build 2017-03-27 18:36:09 +02:00
Vincent Voyer
3c98ea5882 chore(stack update): update the whole docsearch stack (#173)
* chore(stack update): update the whole docsearch stack

In an effort to reduce our stack diversity I am moving docsearch to:
- latest eslint
- prettier
- webpack 2
- babel 6 (babel 7 is soon to be released, we were on babel 5)
- babel-preset-env (support: IE >=9, Two latest version of evergreen
browsers).
- jest

* chore(contrib): remove develop branch, cc @redox
2017-03-17 16:22:00 +01:00
vvo
68bab4112e chore(release): update doc publish system 2017-03-10 11:57:30 +01:00
vvo
0d59029c44 chore(release): use yarn 2017-02-23 13:37:48 -08:00
vvo
c3d2984362 test(travis): raise timeout for travis 2016-12-13 14:07:01 +01:00
vvo
42cf496e37 chore(build): fix build 2016-10-03 14:15:40 +02:00
Vincent Voyer
5a8c457972 chore(shrinkwrap): remove shrinkwrap (#106) 2016-06-10 16:21:13 +02:00
Tim Carry
ef83775f7e feat(serve): Watch and serve all needed files (#91)
Running `npm run serve` will watch for changes in the source files and
rebuild all `css` and `js` files accordingly in the `dist` folder. It
will also expose the same files on `http://localhost:8080/` (by
default, if port `8080` is already taken it will move to an available
one).

This will let developers use a specific branch/version of docsearch in
their projects. Just open a new tab and run `npm run serve` in the
docsearch repo, and you'll be able to include the scripts from the
running server in your HTML.

As files are automatically regenerated on disk whenever a change is
detected, you can also `require` files by targeting the `dist` folder.
2016-05-12 11:58:28 +02:00
Pixelastic
31e5d139d5 feat(serve): Add npm run serve to expose js and css locally 2016-03-10 10:46:46 +01:00
Matthieu Dumont
71b652bd92 docs(documentation.md): Fix not working links
Closes #65
2016-01-27 14:55:10 +01:00