aurelia-ui-toolkits / aurelia-kendoui-bundles

MIT License
1 stars 3 forks source link

Gitbook #3

Open adriatic opened 8 years ago

adriatic commented 8 years ago

I had all kinds of problems trying to clone from gitbook to github "directly"; I tried to push from gitbook and pull from github - nothing good happened. So, I tried the indirect way using my PC as the intermediary

Current situation: I managed to make a local clone of the kendoui-bridge-docs book using this process

C:\work\aurelia-ui-toolkits\KendoUI\kendo-books
λ git clone https://git.gitbook.com/aurelia-ui-toolkits/kendoui-bridge-docs.git
Cloning into 'kendoui-bridge-docs'...
Username for 'https://git.gitbook.com': adriatic
Password for 'https://adriatic@git.gitbook.com':
remote: Counting objects: 1094, done.
remote: Compressing objects: 100% (1027/1027), done.
Receiving objects: 100% (1094/1094), 151.56 KiB | 0 bytes/s, done.
Resolving deltas: 100% (626/626), done.
Checking connectivity... done.

The, I created a new GitHub (empty) repository - https://github.com/aurelia-ui-toolkits/aurelia-kendoui-books initialized with the README.md file only.

Note that my local clone of the whole book from gitbook is in the kendo-book folder and that the local clone of the empty book from github is in aurelia-kendoui-books folder.

Now, I copied (windows explorer) complete content of the kendo-book folder into the (almost empty) aurelia-kendoui-books folder.

Lastly I commited all changes in aurelia-kendoui-books folder and pushed it to https://github.com/aurelia-ui-toolkits/aurelia-kendoui-books repository.

This means that we have a clone of the book at https://aurelia-ui-toolkits.gitbooks.io/kendoui-bridge-docs/content/ in Github - and that is a good thing.

What is still missing? Well, what happens if I open this book for edit? Which sources are used by the gitbook web editor? sources from github or sources from github? It seems that it reads from the latter, based on this view:

image

This matches the setting I put in https://www.gitbook.com/book/aurelia-ui-toolkits/kendoui-bridge-docs/settings/github -

image

However, the repo https://github.com/aurelia-ui-toolkits/aurelia-kendoui-books is a clone of the gitbook original - so why am I not seeing the same content now?

adriatic commented 8 years ago

How not to have to copy the whole book content into a new branch?

The key purpose of the above exercise was to create a clone of the current book and pare it down using the Gitbook Editor to the minimum needed for the KendoUI bridge beta documentation.

Other than installing gitbook desktop editor and use it to massage my local clone of the book, I do not see other alternative. The gitbook support is completely ignoring my questions so far (probably because we have the free OSS account ??)

adriatic commented 8 years ago

Temporary summary:

Cloning

Editing