Hugo Base Install can't find index.json

I have a new Hugo on windows 10 installation with the docdock theme and the site mostly loads but I get a 404 can’t find index.js.

If I understand how Hugo works all the files on disk are loaded into memory and served from memory so the fact that I see index.json on disk is misleading…???

My install looks like this:

C:\Hugo\Bin\Hugo.exe
C:\Hugo\Sites\Abc.com\config.toml
C:\Hugo\Sites\Abc.com\themes\hugo-theme-docdock\theme.toml

Abc.com\config.toml:

baseURL = "/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "hugo-theme-docdock"

From Administrative command prompt:

c:\Hugo\Sites\Abc.com>Hugo serve

Building sites …
               | EN
+------------------+-----+
Pages            |   7
Paginator pages  |   0
Non-page files   |   0
Static files     | 209
Processed images |   0
Aliases          |   2
Sitemaps         |   1
Cleaned          |   0

Total in 163 ms
Watching for changes in c:\Hugo\Sites\Humana.com\ {content,data,layouts,static,themes}
Watching for config changes in c:\Hugo\Sites\Humana.com\config.toml
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Finally in the browser I get the docdock theme to mostly load but I get this 404:

http://localhost:1313/index.json 404 (Not Found)

Any advice would be greatly appreciated

I know you’re on Windows, but on my Mac, /index.json was generated. A quick test:

  1. hugo new site docdock-test
  2. cd docdock-test
  3. git init
  4. git submodule add https://github.com/vjeantet/hugo-theme-docdock.git themes/docdock
  5. Copy example site contents to project root
    • Mac: cp -R themes/docdock/exampleSite/* .
    • Windows: xcopy themes\docdock\exampleSite\* . /s /e
  6. Edit these lines in config.toml to be:
    theme = "docdock"
    # themesdir = "../.."
    
  7. hugo server
  8. Navigate to http://localhost:1313/index.json

Perhaps you don’t have the JSON output format specified? Try adding this to your config.toml:

[outputs]
home = [ "HTML", "RSS", "JSON"]

Also see the docdock docs on activating Lunr.js search.