Algolia Search: A Plugin for Pelican
Installation
This plugin can be installed via:
python -m pip install pelican-algolia
Prerequisites
- Create an Algolia account
- On Algolia website, create a new application
- Create a new Index (or Indices) in you Algolia app. This will be
ALGOLIA_INDEX_NAME - Import you records, if asked select Use the API option
- Go to Settings -> API Keys -> Your API Keys and copy your
- Application ID, this will be
ALGOLIA_APP_ID - Admin API Key (DO NOT HARD CODE THIS IN YOUR PROGRAM). This will be
ALGOLIA_ADMIN_API_KEY - Algolia Search-Only API Key. This will be
ALGOLIA_SEARCH_API_KEY
- Application ID, this will be
Usage
Step 1: Set the following configuration in pelicanconf.py
# Algolia Publish Data
ALGOLIA_APP_ID = "<Your Algolia App ID>"
ALGOLIA_SEARCH_API_KEY = "<Your Search-only Api Key>"
ALGOLIA_INDEX_NAME = "<You Algolia App Index name>"
Step 2: Set the ALGOLIA_ADMIN_API_KEY as an environmatal variable on path
Step 3: Import ALGOLIA_ADMIN_API_KEY in your publishconf.py (or pelicanconf.py if you're not using publishconf.py for publish settings)
import os
ALGOLIA_ADMIN_API_KEY = os.environ.get("ALGOLIA_ADMIN_API_KEY")
Building Search bars
You can read through Algolia documentation on how to build InstaSearch experience, or use a legacy version of search bar (example below) described in detail here.
Contributing
Contributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on existing issues.
To start contributing to this plugin, review the Contributing to Pelican documentation, beginning with the Contributing Code section.
License
This project is licensed under the AGPL-3.0 license.
Metadata
Release files for pelican-algolia 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pelican-algolia-2.2.0.tar.gz | 16.3 kB | Without provenance | Details for pelican-algolia-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pelican_algolia-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for pelican_algolia-2.2.0-py3-none-any.whl |
Total release size: 32.3 kB
Release files / pelican-algolia-2.2.0.tar.gz
| Download URL | pelican-algolia-2.2.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b980e8914143336d7e250b4335c9dc991c1d38e6e5e487852975f7dc488b0922
|
|
BLAKE2b-256 checksum How to use checksums |
5b836c7bddc2b9cd858c487f58b9613654a73e39ed6c0ceeba24662d45d2e333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.7.12 Linux/5.11.0-1020-azure
|
Release files / pelican_algolia-2.2.0-py3-none-any.whl
| Download URL | pelican_algolia-2.2.0-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29c32b9b13e9bbae3629878d84f85a594e8e024d0d0c77dfba9f2067b8b48edd
|
|
BLAKE2b-256 checksum How to use checksums |
e1150475feadec8d4342867dcbb0b2dfeb61de09f1cbaa6cf705dc1d9f9b01c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.7.12 Linux/5.11.0-1020-azure
|
Security for pelican-algolia 2.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.