Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using summary file from subdir does not work anymore on 3.0 #1244

Closed
omnidan opened this issue Apr 21, 2016 · 6 comments
Closed

Using summary file from subdir does not work anymore on 3.0 #1244

omnidan opened this issue Apr 21, 2016 · 6 comments

Comments

@omnidan
Copy link

omnidan commented Apr 21, 2016

Config:

{
  "gitbook": "3.0.0-pre.9",
  "structure": {
    "summary": "docs/README.md"
  },
  "plugins": ["edit-link", "prism", "-highlight", "github", "anker-enable"],
  "pluginsConfig": {
    "edit-link": {
      "base": "https://github.com/omnidan/redux-undo/tree/master",
      "label": "Edit This Page"
    },
    "github": {
      "url": "https://github.com/omnidan/redux-undo/"
    }
  }
}

Output:

ConfigurationError: Error with book's configuration: config.structure.summary does not match pattern "^[0-9a-zA-Z ... ]+$"
@nagim
Copy link

nagim commented Apr 22, 2016

You have to specify the folder of the documents in book.json, if you're not using the root folder:

{
    "root": "./docs"
}

Your book.json should remain in the root.

@omnidan
Copy link
Author

omnidan commented Apr 22, 2016

@nagim Thanks for the reply! I tried this, but unfortunately it doesn't seem to work for me.

With the root option specified in book.json, I get the following error:

Error: Couldn't locate plugins "edit-link, prism, github, anker-enable", Run 'gitbook install' to install plugins from registry.

Without it, but keeping README.md as summary (which isn't the correct file - it should be docs/README.md), it works fine.

@prudhomm
Copy link

idem here root does not seem to work and we get the same message ?
@omnidan what did you do actually to make it work ?

@omnidan
Copy link
Author

omnidan commented Apr 25, 2016

@prudhomm Unfortunately, I still did not get this to work 😞

@paulkoegel
Copy link

Running into the same issue when updating gitbook to 3.0.0 in Redux's book.json.
Added "root": "./docs", still getting the same error.

@paulkoegel
Copy link

ah sorry, my mistake, forgot to adjust the summary path. all working for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants