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

Changes from GitBook might alter our docs #237

Open
dpordomingo opened this issue Sep 9, 2019 · 9 comments
Open

Changes from GitBook might alter our docs #237

dpordomingo opened this issue Sep 9, 2019 · 9 comments
Assignees
Labels
documentation This issues is related to documentation changes enhancement New feature or request triage/needs-product-input This needs input from product

Comments

@dpordomingo
Copy link
Contributor

I commented on c9cdd13 from @vcoisne, about 10 different changes that could alter or damage our docs if not done on purpose.

examples:

  • CONTRIBUTING.md and LICENSING.md moved outside of its expected place (the second one was already fixed by Restore license file #233),
  • broken anchors in README.md,
  • shortened titles.

If they were done on purpose, we could discuss them separately.
If they were done automatically by GitBook UI, I think we should reconsider using it to edit our docs.

@dpordomingo dpordomingo added the needs more info Further information from author of issue is requested label Sep 9, 2019
@carlosms
Copy link
Contributor

carlosms commented Sep 9, 2019

@dpordomingo let's fix what is actually broken (contributing, anchors) and assume all changes were intentional.

@vcoisne let's please follow the normal github workflow and do all future edits as pull requests.
If you really prefer to edit directly on gitbook, this link shows how to edit on a new branch that can be used to open a PR: https://www.thegizraway.com/gitbook_and_github_workflow.html

@carlosms carlosms removed the needs more info Further information from author of issue is requested label Sep 9, 2019
@carlosms
Copy link
Contributor

carlosms commented Sep 9, 2019

Also: the ```text code blocks should be reverted to the proper syntax highlighting we had before.

@dpordomingo
Copy link
Contributor Author

I can fix what you suggested:

  • links (only the already spotted bugs, not checking all other links),
  • move CONTRIBUTING.md to its standard location,
  • code syntax.

But I would like to confirm the following:

  • Can we assume that the broken links are only the ones I found?
  • Can we assume all the other automatic changes done by GitBook (e.g. titles shortening [1], [2], [3])?

@carlosms
Copy link
Contributor

  • Can we assume all the other automatic changes done by GitBook (e.g. titles shortening [1], [2], [3])?

Why do you say those changes are automatic? They look like intentional changes to me.
Let's leave the contents as they are, and just focus on fixing broken links, code blocks etc.

@dpordomingo dpordomingo self-assigned this Sep 11, 2019
@dpordomingo
Copy link
Contributor Author

Per later investigation, I confirmed that each edition made from GitBook UI (no matter what is edited) forces GitBook to parse the whole docs, and format them according to their internal (and not documented) rules.

Some uncontrolled changes are:

  • titles are automatically shortened based on the docs SUMMARY,
  • docs like LICENSE.md, CHANGELOG.md or docs/CONTRIBUTING.md, being moved somewhere else,
  • code syntax defined as text instead of bash or powershell,
  • line breaks are lost, so line length is no longer under our control,

PR #239 rollbacks all the changes made at c9cdd13 by @vcoisne.

We could also disallow GitBook bot to commit to master to avoid these issues.

@vcoisne
Copy link
Contributor

vcoisne commented Sep 11, 2019

@dpordomingo sorry about that and thanks a lot for fixing. Was not clear to me that we could not make these changes via the Gitbook UI. Is that documented anywhere?

@dpordomingo
Copy link
Contributor Author

Don't worry @vcoisne, we didn't know about this issue before you tried.
We discussed it in slack many months ago, but at that moment all of us did prefer regular PRs instead of web UI, so we didn't document it.

I think we should now consider if we want to migrate our docs to GitBook, and then use GitBook for editing, or keep going with regular GitHub PR workflow. If there is no change in our current way to develop our docs, we should also mention in our company CONTRIBUTING.md, that docs should be edited from GitHub (I'd vote for this option).

So, since #239 reverts all your changes made by c9cdd13, do you remember what did you change there? It would help us to recover it. Otherwise, that changes will be reverted with that PR.

@se7entyse7en
Copy link
Contributor

This is something that IMO should be discussed company-wide with @src-d/engineering. I don't know how other teams handle this or whether all teams use GitBook, but I'd vote as an easy (I guess) thing to do prevent committing to master. If we want to go on with GitBook as @dpordomingo it worth mentioning the flow on the guide.

Adding label for @src-d/product to decide about this.

\cc @smola

@se7entyse7en
Copy link
Contributor

I'm moving this to backlog for now.

@se7entyse7en se7entyse7en added triage/needs-product-input This needs input from product documentation This issues is related to documentation changes enhancement New feature or request labels Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This issues is related to documentation changes enhancement New feature or request triage/needs-product-input This needs input from product
Projects
None yet
Development

No branches or pull requests

4 participants