-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Link to Edit and Contribute should point to CONTRIBUTING.md #127
Comments
Actually, I see what's happening here now. The
If that's actually the intention, it's problematic for a few reasons - the first of which being the use-case I'm describing. My gitbook is actually the documentation for a project, so the md files won't be in the master branch repo I specify in the Secondly, it's a confusing UX element, since the other two items in that block (About the Author and Questions and Issues) are persistent throughout the project no matter what page you're on, so having one that changes on the fly based on what part of the book you're in is inconsistent. My book is here, if you're curious to see an example of what I mean. |
👍 on this. I'm also using to to document a project and would need one of these supported:
|
👍 on this. I'd like to have an option to skip the "Edit and contribute" link completely or at least specify a base URL, which would allow us to keep the documentation files where we want at GitHub. In my example the documentation .md file are stored in their own repo, documenting a project which lives in another repository. |
@kevinpapst that's my use case as well, although I don't want it to be. Ideally, I'd just be able to run this on a branch of the project for docs instead of taking up two repos. Makes much more sense to me (for my use case) to keep docs and the project together, and allow people to fork and PR on the docs branch. |
Ok, with the new configuration design using a Let me know if I forgot something:
|
@SamyPesse Thanks so much for working on this so quickly! I ran
My I'm about to hop on a flight out of town for a few days, but I'll definitely check when I get back. I'm sure I donked something up in my rushing around to finish packing. |
(Also, thank you so much for building this project - it's wonderful!) |
Can you paste me your book.json please. And you're welcome 😄 |
Sure, sorry! (As I said, running around packing.)
|
Ok, it's not a valid json, you need to remove the comments (that starts with |
Here is the valid json:
|
duh OMG so dumb. Thank you. This is what I get for doing too many things at once. |
You might want to adjust the docu then, as I would have copy&pasted the code as well ;-) I'd like to see some switches to adjusted the link destination completely. I am still thinking that keeping the docu in its own repo is a valid usecase and the infos/links are incorrect in such circumstances. The docu will for example get no stars, where the real app does.... and so on. Should be easy with the book.json to allow overwriting of each config flag. If a setting is explicit given and null or false disable it, if it exists use its value, if it doesn't exist use the default. |
Added quotes for JSON example, per #127
Comments in JSON are not semantically valid on purpose, but here's a common technique suggested by Douglas Crockford to annotate your JSON:
I like the idea of providing a commented json in order to have a more intuitive config file. Can you pipe it through uglifyjs via Grunt? |
I added the "links" options but it seems to have no effect on the output. I am running 0.4.1. |
Wait for the new release or clone the repo in your local node_modules folder |
Added quotes for JSON example, per #127
* Fix display of authentication infos * Fix property names * Fix body / request starting with oneOf * CSS fixes * Show description * Format * Fix code samples
* fix tab multiline * OpenAPI improvements (GitbookIO#127) * Fix display of authentication infos * Fix property names * Fix body / request starting with oneOf * CSS fixes * Show description * Format * Fix code samples * Convert swagger 2.0 to OpenAPI v3 (GitbookIO#128) * Convert swagger 2.0 to OpenAPI 3 * Format * Fix page with one api block shown as empty (GitbookIO#129) * Fix page with one api block shown as empty * Format * Style sprint (GitbookIO#126) * V1 code blocks fix * equalize modal text label + fix safari bug with fixed position stroke * code block adjustments * fix search result spacing * remove metal + adjust light and dark mode * remove metal from tw config * Add colordebugger + remove unused global colors * correct opacities on all colors * first part of cleaning up colors * fix tab colors * search modal color changes * adjust global colors * expandable + code color changes * add delay to loading panes * adjust globals * improve select table type * improve light mode checkbox * fix delay * content * uncomment debug * expandable fixes * OpenAPI improvements (GitbookIO#127) * Fix display of authentication infos * Fix property names * Fix body / request starting with oneOf * CSS fixes * Show description * Format * Fix code samples * Fix empty API responses not being displayed (GitbookIO#130) * Fix response not being displayed when contains no body * Fix padding * Resolve any JSON/YAML OpenAPI file and resolve common parameters (GitbookIO#132) * Fix parsing of OpenAPI when content-type is unknown * Resolve common parameters * Format * Add support for straight corners (GitbookIO#131) * Add class to body and tailwind variant * Use it on the search button * Use it for buttons and cookies banner * Use it for cards * Use it in more places * Lint * More * page feedback * theme toggler * Rename Authentication to Authorization (GitbookIO#133) * remove unused color light-5 * fix dupe css --------- Co-authored-by: Samy Pessé <samypesse@gmail.com>
Seems like it would make more sense to have the default "Edit and Contribute" point to the CONTRIBUTING.md when there is one, and maybe default to LICENSE or LICENSE.md if that's not present.
The text was updated successfully, but these errors were encountered: