-
Notifications
You must be signed in to change notification settings - Fork 1
Updated files to be in sync with the documentation on Gitbook #1
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| # This .gitignore is based on https://github.com/github/gitignore | ||
|
|
||
| # Java | ||
| *.class | ||
| *.jar | ||
| *.war | ||
| *.ear | ||
|
|
||
| # Maven | ||
| target/ | ||
|
|
||
| # JRebel | ||
| rebel.xml | ||
|
|
||
| # IntelliJ | ||
| *.iml | ||
| *.ipr | ||
| *.iws | ||
| .idea/ | ||
|
|
||
| # Eclipse | ||
| *.pydevproject | ||
| .project | ||
| .metadata | ||
| bin/** | ||
| tmp/** | ||
| tmp/**/* | ||
| *.tmp | ||
| *.bak | ||
| *.swp | ||
| *~.nib | ||
| local.properties | ||
| .classpath | ||
| .settings/ | ||
| .loadpath | ||
| .externalToolBuilders/ | ||
| *.launch | ||
| .cproject | ||
| .buildpath | ||
|
|
||
| # VIM | ||
| .*.sw[a-z] | ||
| *.un~ | ||
| Session.vim | ||
|
|
||
| # OS X | ||
| .DS_Store | ||
| ._* | ||
| .Spotlight-V100 | ||
| .Trashes | ||
|
|
||
| # Windows | ||
| [Tt]humbs.db | ||
| Desktop.ini | ||
| $RECYCLE.BIN/ | ||
|
|
||
| /node_modules | ||
| package-lock.json |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
|
|
||
| # Git for Confluence test repository | ||
| # Git for Confluence reference repository | ||
|
|
||
| This repository contains a set of files in different formats that you can use | ||
| to try out the Git for Confluence app. This repository comes preconfigured when | ||
|
|
@@ -9,31 +9,63 @@ view-git-file macro on any Confluence page. | |
| ## Marketplace | ||
|
|
||
| You can install Git for Confluence by using the Universal Plugin Manager inside | ||
| Confluence, or by visiting the [Git for Confluence marketplace entry][1] | ||
| Confluence, or by visiting the | ||
| [Git for Confluence marketplace entry](https://marketplace.atlassian.com/apps/1211675/git-for-confluence). | ||
|
|
||
| ## Documentation | ||
|
|
||
| If you want to learn how to configure Git for Confluence or use the Git for | ||
| Confluence macro's, please refer tot the [Git for Confluence documentation][2] | ||
| Confluence macro's, please refer tot the | ||
| [Git for Confluence documentation](https://avisi-apps.gitbook.io/git-for-confluence/). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idem
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. Moved the link from the bottom to use it directly here. |
||
|
|
||
| # Formats | ||
|
|
||
| The are three main classes of formats that the Git for Confluence add-on natively | ||
| supports. These consist of Markdown, Image and PlantUML files. Showcase examples | ||
| that demonstrate how these can be used and rendered in Confluence are available | ||
| in the formats directory: | ||
| ```bash | ||
| . | ||
| ├── README.md | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dit is wel onderhoudsgevoelig
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Zeker, naar mijn mening worth it omdat we de repo hopelijk niet vaak gaan updaten. |
||
| └── formats | ||
| ├── code | ||
| │ └── index.html | ||
| ├── image | ||
| │ ├── graph.png | ||
| │ ├── logo.svg | ||
| │ ├── success.jpg | ||
| │ ├── tv.webp | ||
| │ └── world.ico | ||
| ├── markdown | ||
| │ ├── image-reference.md | ||
| │ └── images | ||
| │ └── success.jpg | ||
| └── plantuml | ||
| ├── multi-block.puml | ||
| ├── multi-page.puml | ||
| └── simple-sequence-diagram.puml | ||
| ``` | ||
| These files can be directly added to the ``view-git-file`` Macro in Confluence | ||
| and will be rendered on a page. | ||
|
|
||
| ## Image | ||
|
|
||
| Several images in several formats are available in the formats/markdown folder. | ||
| An images will simply be show as an image when included on a Cofluence page by | ||
| using the view-git-file macro. | ||
| An image will simply be show as an image when included on a Confluence page by | ||
| using the ``view-git-file`` macro. Currently we support the following extensions: | ||
| * .png | ||
| * .jpg | ||
| * .webp | ||
| * .ico | ||
|
|
||
| ## Markdown | ||
|
|
||
| You can simply use the view-git-file macro to include this file. There are | ||
| You can simply use the ``view-git-file`` macro to include this file. There are | ||
| more markdown examples in the formats/markdown folder. | ||
|
|
||
| ## PlantUML | ||
|
|
||
| There are a few basic and a few more advanced PlantUML examples available in | ||
| the formats/plantuml folder. Try out a basic sequence diagram, or the more | ||
| advanced examples, that result in multiple images on your Confluene page. | ||
|
|
||
| [1]: https://marketplace.atlassian.com/apps/1211675/git-for-confluence | ||
| [2]: https://avisi-apps.gitbook.io/git-for-confluence/ | ||
| advanced examples, that result in multiple images on your Confluence page when | ||
| rendered with the ``view-git-file`` macro. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| --- | ||
| layout: reference | ||
| --- | ||
| <div class="box"> | ||
| <h2>Introduction to the Git Reference</h2> | ||
| <div class="block"> | ||
| <p> | ||
| This is the Git reference site. It is meant to be a quick | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dit kan dan weer verwarrend werken
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wat is de reden voor het toevoegen van dit bestand? Is dit een voorbeeld voor code markup?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inderdaad, iets van een blok code markup. Deze is toevallig free to use zonder daar een clause voor toe te moeten voegen en ziet er wel mooi uit. Denk je dat het beter is anders zelf een blokje te schrijven?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Het is veel beter als we (of desnoods marketing) hier een mooie pagina voor maakt. De vraag is ook of html de beste optie is, of code. Wie is er aan het evalueren en wordt hier blij van? Is het beter om (ook) clojure / java / etc bestanden toe te voegen?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prima, zal ik deze sectie dan verwijderen?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Of veranderen door inhoud die over Git for Confluence gaat, of een compleet random html bestand, of beter iets van Java code ofzo?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll look for something! |
||
| reference for learning and remembering the most important and | ||
| commonly used Git commands. The commands are organized into | ||
| sections of the type of operation you may be trying to do, and | ||
| will present the common options and commands needed to accomplish | ||
| these common tasks. | ||
| </p> | ||
| <p> | ||
| Each section will link to the next section, so it can be used | ||
| as a tutorial. Every page will also link to more in-depth | ||
| Git documentation such as the official manual pages and relevant | ||
| sections in the <a href="http://git-scm.com/book">Pro Git book</a>, | ||
| so you can learn more about any of | ||
| the commands. First, we'll start with thinking about source code | ||
| management like Git does. | ||
| </p> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="box"> | ||
| <h2>How to Think Like Git</h2> | ||
| <div class="block"> | ||
| <p> | ||
| The first important thing to understand about Git is | ||
| that it thinks about version control very differently than | ||
| Subversion or Perforce or whatever SCM you may be used to. It | ||
| is often easier to learn Git by trying to forget your assumptions | ||
| about how version control works and try to think about it in the | ||
| Git way. | ||
| </p> | ||
|
|
||
| <p> | ||
| Let's start from scratch. Assume you are designing a new source | ||
| code management system. How did you do basic version control before | ||
| you used a tool for it? Chances are that you simply copied your | ||
| project directory to save what it looked like at that point. | ||
| </p> | ||
|
|
||
| <pre> $ cp -R project project.bak </pre> | ||
|
|
||
| <p> | ||
| That way, you can easily revert files that get messed up later, or | ||
| see what you have changed by comparing what the project looks like | ||
| now to what it looked like when you copied it. | ||
| </p> | ||
|
|
||
| <p> | ||
| If you are really paranoid, you may do this often, maybe putting the | ||
| date in the name of the backup: | ||
| </p> | ||
|
|
||
| <pre> $ cp -R project project.2010-06-01.bak </pre> | ||
|
|
||
| <p> | ||
| In that case, you may have a bunch of snapshots of your project that | ||
| you can compare and inspect from. You can even use this model to | ||
| fairly effectively share changes with someone. If you zip up your | ||
| project at a known state and put it on your website, other developers | ||
| can download that, change it and send you a patch pretty easily. | ||
| </p> | ||
|
|
||
| <pre> | ||
| $ wget http://example.com/project.2010-06-01.zip | ||
| $ unzip project.2010-06-01.zip | ||
| $ cp -R project.2010-06-01 project-my-copy | ||
| $ cd project-my-copy | ||
| $ (change something) | ||
| $ diff project-my-copy project.2010-06-01 > change.patch | ||
| $ (email change.patch)</pre> | ||
|
|
||
| <p> | ||
| Now the original developer can apply that patch to their copy of the | ||
| project and they have your changes. This is how many open source | ||
| projects have been collaborated on for several years. | ||
| </p> | ||
|
|
||
| <p> | ||
| This actually works fairly well, so let's say we want to write a tool | ||
| to make this basic process faster and easier. Instead of writing a tool | ||
| that versions each file individually, like Subversion, we would probably | ||
| write one that makes it easier to store snapshots of our project without | ||
| having to copy the whole directory each time. | ||
| </p> | ||
|
|
||
| <p> | ||
| This is essentially what Git is. You tell Git you want to save a snapshot | ||
| of your project with the <code>git commit</code> command and it basically | ||
| records a manifest of what all of the files in your project look like at | ||
| that point. Then most of the commands work with those manifests to see | ||
| how they differ or pull content out of them, etc. | ||
| </p> | ||
|
|
||
| <center><img src="./images/snapshots.png"/></center> | ||
|
|
||
| <p> | ||
| If you think about Git | ||
| as a tool for storing and comparing and merging snapshots of your project, | ||
| it may be easier to understand what is going on and how to do things | ||
| properly. | ||
| </p> | ||
|
|
||
| </div> | ||
| </div> | ||
|
|
||
| <p><a class="page-button next-page" href="{{ site.baseurl }}/creating">On to Getting and Creating Projects »</a></p> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added the link directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dat zie ik, maar waarom? Ik leer altijd graag mee.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omdat een gebruiker nu direct op de link kan klikken ipv naar de footnotes moet scrollen, daar een link moet selecteren en in zijn browser moet plakken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die link wordt gewoon inline gerenderd, daar verandert niets aan toch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eerst stonden de links als footnote, nu staan de links inline wat mij beter leek dan ze als footnote toevoegen. De footnotes zijn in de laatste commit ook verwijderd. Het doel hier is het voor een gebruiker zo simpel mogelijk maken om naar de docu te gaan. Als een gebruiker eerst nog naar de footnotes moet zoeken is dat weer een extra stap die ik graag wil voorkomen.