Giter Club home page Giter Club logo

Comments (11)

morajabi avatar morajabi commented on June 9, 2024 3

@mxstbr I checked Flow and it's using Algolia. How do you want results to be? I think Flow results box are a bit overhead for styled-components, isn't it? I'd like to implement it.

from styled-components-website.

morajabi avatar morajabi commented on June 9, 2024 3

I found this: https://github.com/algolia/docsearch I'm pretty sure it's what Webpack, Babel, React and others use. How is it?

from styled-components-website.

morajabi avatar morajabi commented on June 9, 2024 2

@mxstbr @philpl I need to inject a small JS into the docs page so Algolia team can scrape our site and then I can go forward with the search component.

from styled-components-website.

mxstbr avatar mxstbr commented on June 9, 2024 1

I quite like the flow result box, but feel free to experiment and come up with something better!

from styled-components-website.

mxstbr avatar mxstbr commented on June 9, 2024 1

Let's do it!

from styled-components-website.

mxstbr avatar mxstbr commented on June 9, 2024 1

Sounds great!

from styled-components-website.

mxstbr avatar mxstbr commented on June 9, 2024 1

👌

from styled-components-website.

morajabi avatar morajabi commented on June 9, 2024

This is the reply I got from Algolia team (I thought it's good to have it here too):


Hi Mohammad,

Congratulations, your search is now ready!
I've successfully configured the underlying crawler and it will now run every 24h.

You're now a few steps away from having it working on your website:

  • Copy the following CSS/JS snippets and add them to your page
<!-- at the end of the HEAD -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<!-- at the end of the BODY -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: '79886fb59ad3ebe2002b481cffbbe7cb',
indexName: 'styled-components',
inputSelector: '### REPLACE ME ####',
debug: false // Set debug to true if you want to inspect the dropdown
});
</script>

Feel free to get back to us if you have any issues or questions regarding the integration.
We'd also be happy to get your feedback and thoughts about DocSearch - so we can continue to improve it.

Have a nice day :)


I'll try setting it up tomorrow.

from styled-components-website.

mckernanin avatar mckernanin commented on June 9, 2024

@morajabi need any help getting this wrapped up?

from styled-components-website.

morajabi avatar morajabi commented on June 9, 2024

This was done actually, but I think we had a minor problem on mobile and we hold it? @mxstbr Am I recalling correctly?

from styled-components-website.

imbhargav5 avatar imbhargav5 commented on June 9, 2024

Fixed as of #310

from styled-components-website.

Related Issues (20)

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.