Skip to content

Commit

Permalink
Merge pull request #7617 from wazuh/2.1-update-pagefind
Browse files Browse the repository at this point in the history
[2.1] Update of the search library
  • Loading branch information
javimed authored Oct 25, 2024
2 parents c064248 + b867cff commit 4dbe398
Show file tree
Hide file tree
Showing 27 changed files with 2,166 additions and 932 deletions.
4 changes: 4 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.25.0
language-settings:
python: "3.9"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ theme:
@echo

search-index:
npx -y pagefind@v0.8.0 --source $(BUILDDIR)/html --force-language en
npx -y pagefind@v1.1.0 --site $(BUILDDIR)/html --force-language en

html-production:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html -t production
Expand Down
7 changes: 7 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,17 @@ if "%1" == "theme" (
goto end
)

if "%1" == "search-index" (
npx -y pagefind@v1.1.0 --site %BUILDDIR%/html --force-language en
goto end
)

if "%1" == "html-prod" (
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html -t production
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html "(production mode)"
npx -y pagefind@v1.1.0 --site %BUILDDIR%/html --force-language en
goto end
)

Expand All @@ -100,6 +106,7 @@ if "%1" == "html-dev" (
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html "(dev mode)"
npx -y pagefind@v1.1.0 --site %BUILDDIR%/html --force-language en
goto end
)

Expand Down
4 changes: 2 additions & 2 deletions pagefind.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pagefind.yml
source: build/html
bundle_dir: _pagefind
site: build/html
output_subdir: pagefind
force_language: en
8 changes: 3 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
Sphinx==7.0.1
sphinx-tabs==3.4.1
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-htmlhelp==2.0.1
Sphinx==7.2.6
sphinx-tabs==3.4.5
docutils==0.18.1
jsmin==3.0.1
Jinja2==3.1.2
Pygments==2.15.1
sphinx-reredirects==0.1.2
sphinx-reredirects==0.1.5
Loading

0 comments on commit 4dbe398

Please sign in to comment.