diff --git a/.gitignore b/.gitignore index 2002ad6..0ade8bf 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ qp_web.ron qp_indexer.toml nix_flake/result nix_flake/test_vm/nixos.qcow2 -nix_flake/test_vm/result \ No newline at end of file +nix_flake/test_vm/result +quickpeep.ron \ No newline at end of file diff --git a/quickpeep.sample.ron b/quickpeep.sample.ron new file mode 100644 index 0000000..ccb641b --- /dev/null +++ b/quickpeep.sample.ron @@ -0,0 +1,98 @@ +( + // Web front-end (web) + web: ( + seed_collection: ( + column1: [ + ( + name: "Kind", + tags: [ + (name: "Blog", id: "blog"), + (name: "Manual", id: "man"), + (name: "Cheatsheets", id: "cheatsheets"), + ] + ), + ( + name: "Personage", + tags: [ + (name: "Personal", id: "personal"), + (name: "Small team (personal but multiple people)", id: "multipersonal"), + (name: "Community", id: "community"), + (name: "Non-profit organisation", id: "nonprofit"), + (name: "Company", id: "company"), + ] + ), + ], + column2: [ + ( + name: "Content", + tags: [ + (name: "Technical (broad category)", id: "technical"), + (name: "Software", id: "software"), + (name: "Electronics", id: "electronics"), + (name: "Mechanical", id: "mechanical"), + (name: "Physics", id: "physics"), + (name: "Chemistry", id: "chemistry"), + (name: "Biology", id: "biology"), + (name: "Mathematics", id: "maths"), + (name: "Non-technical (broad category)", id: "nontechnical"), + (name: "Plants", id: "plants"), + (name: "Animals", id: "animals"), + (name: "Culinary", id: "culinary"), + (name: "Visual Art", id: "gfxart"), + (name: "Music", id: "music"), + (name: "Other Art", id: "miscart"), + (name: "Travel", id: "travel"), + ] + ) + ], + column3: [ + ( + name: "Anti-tags", + tags: [ + (name: "Outdated ('old')", id: "old"), + (name: "Unsafe", id: "nsfw"), + ] + ) + ], + ), + + contact: [ + ("Matrix", "..."), + ("e-mail", "..."), + ("ActivityPub/Mastodon/Pleroma etc", "..."), + ], + + sqlite_db_path: "data/dev_qp_web.sqlite3", + ), + + // Index (indexer, web) + index: ( + type: "tantivy", + index_dir: "./index", + icon_store: "./index_icons" + ), + + // Seeds (raker, indexer) + seed_dir: "../quickpeep_seeds", + + // Raker (raker) + raker: ( + // Data files + data_dir: "./data", + + // Workbench + workbench_dir: "./workbench", + + // Rakepacks + emit_dir: "./rakepacks", + + metrics: ( + prometheus: "127.0.0.1:9774", + // bare_metrics: true + ), + + pack_emitter: ( + + ), + ), +)