Code Monkey home page Code Monkey logo

Comments (10)

aleen42 avatar aleen42 commented on May 26, 2024 1

@mauroservienti Oh, the root property is a feature released in 2015, which allows author to figure out where the root folder of the book is.

from personalwiki.

aleen42 avatar aleen42 commented on May 26, 2024 1

@mauroservienti 2333, okay, I will fix it soon or later.

from personalwiki.

aleen42 avatar aleen42 commented on May 26, 2024

@mauroservienti root is not an defined property for using in this plugin, and what it can be set is only repo and branch:

  • repo is used to figure out the repository responding to your book
  • branch is used to figure out which branch or your given repository

For example, if the repo is given "aleen42/PersonalWiki", and the branch is given "master", then edit button will be set as "https://github.com/aleen42/personalwiki/edit/master/README.md", in which README.md is a relative path read by calling a specific API of Gitbook.

from personalwiki.

aleen42 avatar aleen42 commented on May 26, 2024

Anyway, thanks for your issue firstly, and the project of gitbook-edit is not able to be issued because it's forked from another project.

from personalwiki.

mauroservienti avatar mauroservienti commented on May 26, 2024

root is a standard GitBook property that allows files to be stored in a sub-folder. Isn't there an option to support it when building the path to the GitHub file?

from personalwiki.

aleen42 avatar aleen42 commented on May 26, 2024

@mauroservienti Actually, I have not even used this property, and can you show me your value of root and tell me how to build the path with this property, or what it really means? Of course, I can provide another option for this building. Of course you can also fork my repo to give out another pull request to support your requirement, man.

from personalwiki.

mauroservienti avatar mauroservienti commented on May 26, 2024

Take a look at our repo: https://github.com/RadicalFx/documentation
In the root there is book.json file that configures GitBook to look for doco source files in the ./docs folder instead of using the repo root folder. Actually your plugin builds the following edit url (using your sample):

https://github.com/aleen42/personalwiki/edit/master/README.md

If the root configuration property is defined it should be

https://github.com/aleen42/personalwiki/edit/master/{root-configuration-value}/README.md

Where {root-configuration-value} should be trimmed removing from start any ./ and from end any /.

from personalwiki.

mauroservienti avatar mauroservienti commented on May 26, 2024

Of course you can also fork my repo to give out another pull request to support your requirement, man.

I have zero node.js knowledge unfortunately 😞

from personalwiki.

mauroservienti avatar mauroservienti commented on May 26, 2024

I had a couple of minutes and decided to give it a try 😄
We use to say: Don't shoot to the pianist 😉

from personalwiki.

aleen42 avatar aleen42 commented on May 26, 2024

@mauroservienti check the version @1.0.8 and rebuild your book with it to test whether it works for your book.

from personalwiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.