Ken Snyder 50e1819977 FIrst Pass on the new Tauri Search (#1)
* chore: model config API accepts mappers but API still needs finishing

* refactor: moved files into better directory structure, simplified TS parse, added MD parse

* chore: reduced number of mappers needed and removed the createMapper abstraction

* chore: added "refresh-prose" CLI command to build AST and ProseModel cache

* chore: better CLI message for refresh-prose when no changes are detected

* chore: refreshProse CLI and tests complete

chore: refreshRepos started

* chore: finished refreshRepos() functionality

* chore: all pipelines -- outside of Rust API -- are in place and playground starting to be useful in analyizing index characteristics

* chore: added link tests

* chore: de-lint

* docs: cleaned up playground and mildly improved ux

* feature: calling a model's createIndex also configures the index per the Model's specification

* chore: updated docs links in README for docs package

* chore(docs): de-linted Vue files to follow linting rules

* chore(docs): 2nd round of de-linting once React type bleed-in was removed

* chore(docs): styling adjustment to inline code blocks

* chore: moved to forked version of simple-markdown which doesn't pollute namespace

chore: forked markdown-it-collapsible and then upgraded it ... now released as markdown-it-expandable

* docs: small updates to help with ENV variables and docker compose

chore: made sure that push-caches CLI creates the indexes before pushing docs (so that Model's config is used)

* chore: fixed "into" docker scripts

* chore: added CLI commands for creating and dropping indexes

* fix: added appropriate await for dropping indexes

* fix: fixed CLI to drop indexes (really this time)

* chore: tuned properties of "consolidated" index to be more inline with current search

* chore: remove unwanted cache files and make those which have merit binary files

* chore: created placeholder files for github actions

refactor: refactored all CLI and pipeline code to be more consistent and use better abstraction

feature: added the ability to configure ranking properties in a model

refactor: reduced the number of cache files and removed those unnecessary for delta updates from git

* fix: exclude JS API docs from prose docs

* test: fixed tests to adjust to external changes in documentation as well as earlier caching refactor

* chore: remove temp file vite.config.ts.js from repo

* refactor: made createModel return a function that returns ISearchModel; allowing stage based offsets in Meili API

* refactor: adjusted both CJS and ESM code to be able to interact better WRT to stage

* chore: increased patterns to exclude ENV files

* fix: fixed typo in docker-compose

chore: starting github actions with build, lint, and test

* chore: take 1 on a build action

* chore: take 2 on test action

* chore: composite action's must be called action.yml

* chore: added full-update action

* Feature/action jackson (#2)

* chore: checking whether full relative path works

* chore: add stage input to full-update

* chore: moved prep action into actions folder

* chore: checkout in action as well as workflow

* chore: no name for checkout

* fix: added checkout to test workflow

* chore: trying actions/prep/action.yml path

* chore: added namespace for setup-node

* chore: added "shell" for CLI commands

* chore: install tauri-repo deps as separate step

* chore: use pnpm's action

* chore: added pnpm version number

* chore: disable cache for now

* added some more inputs

* chore: remove recursive flag in pnpm action

* added ENV specific scripts for full update

* chore: move MEILI keys to be stage specific

* chore: add secrets to ENV in update

* fix: add defensive code to ESM version of getEnv()

* fix: more defence with getEnv()

* chore: getEnv is defensive as hell :)

* chore: another attempt at avoiding getEnv error

* chore: picking up secrets in a differnt bucket

* chore: full-update includes GH_ secrets

* chore: wire up all inputs to ENV variables

* chore: removed refs to feature branch with TS AST

chore: added `anchor` property to consolidated index for consistency sake

* chore: remove heirarchy_radio_lvl props to improve interaction with searchbar

chore: updated deps

* fix: moved no-new-privileges setting in docker-compose back to correct settign

* chore: improvements to Prose and Consolidated model

* chore: updated deps and caches
2022-02-14 12:50:19 -08:00
2022-01-23 08:51:34 -08:00

tauri-search

use of Meilisearch for Tauri's website

Getting Started

# 1. installs deps for both CLI and Docs
# 2. starts Docs server (in dev mode with HMR), opens in browser
# 3. starts Meilisearch server in Docker
pnpm run start

If you've already installed all the deps and want more granular control you can try any of the following script targets:

# start Docker services (you must have Docker installed)
docker compose up -d
# or
pnpm run up

# stop Docker services
docker compose down
# or
pnpm run down

# turn on watcher mode for both CLI and Docs
pnpm run watch

A browser window should now have opened up pointing to http://localhost:3333. See you over there.

Quick CLI overview

For those who aren't impressed with browser based documentation ... here's a quick guide to the script commands you can use from the root of the monorepo:

  • pnpm run watch - start up dev server in HMR mode, and put watchers on all code in tauri-search
  • pnpm run build - build both CLI and npm exports of tauri-search package
  • pnpm run cli:clear-caches - removes all JSON based cache files of AST or search Documents from tauri-search
  • pnpm run cli:push-caches - will create caches (where necessary) and push them into the local Meilisearch server
  • pnpm run test - runs the terminal test runner once and exits
  • pnpm run test:watch - runs test runner in both console and web browser and watches for changes
Description
No description provided
Readme 12 MiB
Languages
TypeScript 76.8%
Vue 12.5%
Rust 8.2%
CSS 1.4%
JavaScript 0.7%
Other 0.4%