Skip to content

Commit

Permalink
Fix for search dialog (#564)
Browse files Browse the repository at this point in the history
Fix for search dialog

---------

Co-authored-by: Zinovii Dmytriv <[email protected]>
  • Loading branch information
Zinovii Dmytriv and Zinovii Dmytriv authored Mar 16, 2023
1 parent 781a4d5 commit d2067c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ deps:
build: deps
npm run build

# removed all files from `assets/js/*.js` and made 2 new special files `main.*.js` and `runtime~main.*.js`. This way we will not gonna get 404 by browser and page will load faster.
build-production: build
ASSETS_DIR="build/assets/js" && \
ASSETS_MAIN_FILE="$$(ls -1 $${ASSETS_DIR}/main.*.js)" && \
ASSETS_RUNTIME_MAIN_FILE="$$(ls -1 $${ASSETS_DIR}/runtime~main.*.js)" && \
rm -rf $${ASSETS_DIR}/* && \
touch $${ASSETS_MAIN_FILE} && \
touch $${ASSETS_RUNTIME_MAIN_FILE}
@exit 0

start:
npm start
Expand Down
1 change: 1 addition & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const config = {
onDuplicateRoutes: 'warn',
favicon: 'img/favicon.png',
plugins: [
//['@docusaurus/plugin-debug', {'id': 'debug-docs'}],
[
'@docusaurus/plugin-content-docs',
{
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"dependencies": {
"@docusaurus/core": "^2.3.1",
"@docusaurus/plugin-client-redirects": "^2.3.1",
"@docusaurus/plugin-debug": "^2.3.1",
"@docusaurus/plugin-google-gtag": "^2.3.1",
"@docusaurus/preset-classic": "^2.3.1",
"@mdx-js/react": "^1.6.22",
Expand Down

0 comments on commit d2067c4

Please sign in to comment.