From 6cb5700b1c2f10360b0ac1df50912e492d04bcd3 Mon Sep 17 00:00:00 2001 From: Gregory Becker Date: Fri, 1 Mar 2024 13:47:15 -0800 Subject: [PATCH] try using nosearch to deprioritize api docs in search --- lib/spack/docs/Makefile | 1 + lib/spack/docs/nosearch-api-docs | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 lib/spack/docs/nosearch-api-docs diff --git a/lib/spack/docs/Makefile b/lib/spack/docs/Makefile index d86faa6ad46..9f5464134ca 100644 --- a/lib/spack/docs/Makefile +++ b/lib/spack/docs/Makefile @@ -59,6 +59,7 @@ upload: apidoc: sphinx-apidoc -f -T -o . ../spack sphinx-apidoc -f -T -o . ../llnl + ./nosearch-api-docs # set :nosearch: at top of each file help: @echo "Please use \`make ' where is one of" diff --git a/lib/spack/docs/nosearch-api-docs b/lib/spack/docs/nosearch-api-docs new file mode 100755 index 00000000000..3e11e0b10ef --- /dev/null +++ b/lib/spack/docs/nosearch-api-docs @@ -0,0 +1,6 @@ +#!/bin/sh + +# Set :nosearch: at top of each api doc file +for filename in {spack,llnl}.*.rst; do + $(echo ":nosearch:"; cat $filename) > $filename +done