Comments (8)
Peut-être via lunr.js?
from hugo-theme-learn.
@gwleclerc avait justement commencé avec Lunr. Mais il avait pas terminé. On espérait que Hugo fournisse un truc automatisé d'ici là ^^.
Mais c'est pas encore le cas.
from hugo-theme-learn.
Normalement tout est fonctionnel sur la branche search pour prendre un index lunr.js.
Le problème c'est que la génération de l'index ne peut pas se faire dans le thème. On peut juste s'attendre à ce qu'un fichier JSON soit disponible à un endroit et le prendre comme l'index.
from hugo-theme-learn.
c'est pas dérangeant que lancer un truc au moment de la génération si besoin.
from hugo-theme-learn.
Oui, ce n'est pas dérangeant, mais ce serait pas mal qu'Hugo le fasse tout seul, au moment du hugo serve
Parce que dans ce contexte, quand tu es en mode watch
(Hugo reprend en compte les modifications), la génération de l'index Lunr ne se fera pas en automatique. Tu es obligé de relancer la génération à la main.
Donc tu perds la simplicité de lancement d'Hugo. C'est pour ça qu'on n'avait pas intégré Lunr directement, en attendant qu'Hugo fasse quelque chose. C'est en cours, mais la milestone n'est pas définie : gohugoio/hugo#1853
from hugo-theme-learn.
La milestone n'est pas définie et pas prête de l'être visiblement :) Y-a moyen de merger la branche quitte à l'enlever quand ce sera dispo sur hugo ?
from hugo-theme-learn.
Je ferais ça ce soir après le meetup go ;)
from hugo-theme-learn.
Done with Lunr ! https://matcornic.github.io/hugo-learn-doc/basics/installation/#enable-search-functionality
Could be re-opened if Hugo makes search native.
from hugo-theme-learn.
Related Issues (20)
- Sample Configuration in YAML HOT 1
- Resize header or sidebar
- New Release to address the solved issues HOT 4
- Issue with setting landingPageURL being reliant on languages HOT 1
- Google Analytics in the exampleSite HOT 1
- Update Mermaid version HOT 2
- Font licensing? HOT 1
- Text-align left for chapters
- Create Handout HOT 1
- Search function not working as expected HOT 1
- Custom Header and Footer Rendering Under Sidebar HOT 1
- override global ordersectionsby on a per section basis? HOT 1
- disable copy-to-clipboard on a per code block basis? HOT 1
- i18n translation by content directory HOT 1
- mindmaps in mermaid (feature request ) HOT 1
- Attachments URL wrong if site is deployed under subpath
- link of logo not pointing to basepath HOT 1
- Synology Docker configuration & firewall HOT 1
- A Few Questions HOT 2
- What are people migrating too? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-learn.