Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .gitignore
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
52 changes: 42 additions & 10 deletions README.md
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
Expand All @@ -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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Copy Markdown
Author

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.

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Author

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.

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Author

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.

[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/).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit is wel onderhoudsgevoelig

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The 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.
112 changes: 112 additions & 0 deletions formats/code/index.html
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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit kan dan weer verwarrend werken

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The 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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prima, zal ik deze sectie dan verwijderen?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The 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 &#187;</a></p>
Binary file added formats/image/world.ico
Binary file not shown.