Git Product home page Git Product logo

netlify-plugin-algolia-index's Introduction

Contain me!

# ADHD-Dockerfile

FROM multitasker:latest

LABEL maintainer="[email protected]"

# Install focus tools
RUN apt-get update && apt-get install -y \
    adhd \
    executive-dysfunction \
    sticky-notes \
    coffee \
    software \
    fidget-spinners \
    gaming

# Set up workspace
WORKDIR /home/luke

# ADD distractions
ADD https://x.com/lukeocodes /home/luke/x
ADD https://github.com/lukeocodes /home/luke/github

# GET work
RUN git clone [email protected]:deepgram-devs/deepgram-conversational-demo.git
RUN git clone [email protected]:deepgram/deepgram-js-sdk.git
RUN git clone [email protected]:deepgram-starters/nextjs-live-transcription.git
RUN git clone [email protected]:deepgram-devs/react-nowplaying.git

# CMD to run focus tools (which get ignored)
CMD ["focus", "--start"]

# Entry point (where it all goes off track)
ENTRYPOINT ["echo", "Starting focus session... ooh look, a squirrel!"]

# End result
# ADHD-Container running with 22515320994320 open tabs and 12 unfinished work tasks

netlify-plugin-algolia-index's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar ehmicky avatar hypervillain avatar lukeocodes avatar swyxio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

netlify-plugin-algolia-index's Issues

How to exclude multiple files from algolia index

Hello luke,, I tried using your plugin for my website,, I actually works great. I wanted to understand better how i can exclude particular files or folders from the indexing. In your setup you gave an example like this:
[[plugins]]
package = 'netlify-plugin-algolia-index'

all inputs is optional, we just show you the defaults below

[plugins.inputs]

exclude = ['/404.html'] # don't index this file

So,, then the 404.html should be excluded. I wanted to do this on multiple files. I tried something like this : # exclude = ['/404.html','downloads','blog','privacy','staff'] and after downloading the json file at the generated url,, i uploaded it to algolia,, and I was still getting those excluded files in the search results. Perhaps the commas shouldn't be used as the separator? . I would be greatful if you can assist to achieve it . Thanks, chel

Can cause an error when indexing "/"

Describe the bug

When you don't filter / or /index.html then the object we expect has an empty string as a path. Paths are used as objectID to ensure records are updated when we republish. An empty objectID throws an error.

To Reproduce
Steps to reproduce the behavior:

  1. Build site
  2. Errors

Expected behavior

  1. Build site
  2. No errors

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

Additional context
Add any other context about the problem here.

Submit the updated index to Algolia during build.

Is your feature request related to a problem? Please describe.
Not really, I just wish that there was a way to have this plugin also submit the index it creates during deployment to an index in my Algolia account automatically after it creates it.

Describe the solution you'd like
A clear and concise description of what you want to happen.
I'm imagining that I could edit the plugin to enter in the information needed to tell it which index on Algolia to submit it to and then it would be able to submit the new index to the specified index on Algolia right after it is created.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I've looked for other ways to automatically submit an index to Algolia on build but was not able to find anything that seemed like it would be easy to figure out.

I was hoping that I could use Zapier to connect Netlify & Algolia but Algolia is not available on there sadly.

Top-level logic error handling

The Algolia client is created and initialized on the top-level scope. If an error was thrown, it would not be properly handled as a user error (using utils.build.failBuild()).

Would it be possible to initialize it inside onPostBuild() instead, and add some error handling around it?

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.