GithubHelp home page GithubHelp logo

tiancheng-luo / docsearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from algolia/docsearch

0.0 1.0 0.0 45.37 MB

:blue_book: The easiest way to add search to your documentation.

Home Page: https://docsearch.algolia.com

License: MIT License

JavaScript 27.82% CSS 53.32% TypeScript 18.85%

docsearch's Introduction

DocSearch

The easiest way to add search to your documentation – for free.

npm version License

DocumentationJavaScript PlaygroundReact Playground


DocSearch crawls your documentation, pushes the content to an Algolia index and provides a dropdown search experience on your website.

Preview

Screencast

Light Dark
Light preview Dark preview

Usage

Don't have your Algolia credentials yet? Apply to DocSearch!

1. Import the library as an ECMAScript module:

npm install @docsearch/js@alpha
# or
yarn add @docsearch/js@alpha
import docsearch from '@docsearch/js';

1–bis. Or with a script tag (at the end of the body):

<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script>

2. Use the library:

docsearch({
  container: '#docsearch',
  indexName: 'YOUR_INDEX_NAME',
  apiKey: 'YOUR_API_KEY',
});

3. Customize the color scheme.

Related projects

DocSearch is made of the following repositories:

License

MIT

docsearch's People

Contributors

renovate-bot avatar francoischalifour avatar pixelastic avatar shipow avatar redox avatar renovate[bot] avatar maxiloc avatar vvo avatar shortcuts avatar codeharmonics avatar haroenv avatar dependabot[bot] avatar lukyvj avatar kokliko avatar instantsearch-bot avatar jerska avatar elpicador avatar coliff avatar mblandineau avatar slorber avatar chenxsan avatar kaelig avatar dzello avatar proudlygeek avatar endiliey avatar mojavelinux avatar cjbrooks12 avatar aaronstillwell avatar lukasdrgon avatar maraisr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.