Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
documentation:migrate-documentation [2010/11/11 09:24] – created mikedocumentation:migrate-documentation [2026/10/07 22:30] (current) – Delete obsolete page kevinbowen
Line 1: Line 1:
-~~NOTRANS~~ 
  
-====== Migrate documentation ====== 
- 
-To migrate existing documentation from your project you will need to create a branch inside the //xfce4-docs// repository. After that you need to remove it from your project and add a git submodule instead. 
- 
-===== Xfce4-docs branch ===== 
- 
-  - Clone the repository with write access. 
-    * ''<nowiki>git clone ssh://<USERNAME>@git.xfce.org/git/xfce/xfce4-docs</nowiki>'' 
-    * ''<nowiki>cd xfce4-docs</nowiki>'' 
-  - Create a branch for your project. 
-    * ''<nowiki>git checkout --orphan <PROJECT>-master</nowiki>'' 
-  - Copy your documentation inside this new branch. 
-    * ''<nowiki>cp -r /path/your/project/doc/* ./</nowiki>'' 
-  - Push the new branch. 
-    * ''<nowiki>git add *</nowiki>'' 
-    * ''<nowiki>git commit -m"Initial <PROJECT> documentation"</nowiki>'' 
-    * ''<nowiki>git push --all</nowiki>'' 
- 
-===== Update your project ===== 
- 
-  - Remove entirely the documentation from your project (e.g. ''rm -rf doc''). 
-  - Add a submodule from the xfce4-docs read-only repository. 
-    * ''<nowiki>git submodule add -b <PROJECT>-master git://git.xfce.org/xfce/xfce4-docs doc</nowiki>'' 
-  - Update the ''autogen.sh'' script to use a recent version of xdt-autogen. 
-    * Snippet: \\ ''XDT_AUTOGEN_REQUIRED_VERSION=<nowiki>"4.7.3"</nowiki> \ \\ XDT_AUTOGEN_CHECK_DOCS=<nowiki>"doc"</nowiki> \ \\ exec xdt-autogen $@'' 
-  - Push the changes. 
-    * ''<nowiki>git add autogen.sh</nowiki>'' 
-    * ''<nowiki>git commit -m"Include documentation from xfce4-docs"</nowiki>'' 
-    * ''<nowiki>git push</nowiki>'' 
- 
-By now when a user clones the repository, the content of the submodule will automatically be initialized by running the ''autogen.sh'' script. A check within ''xdt-autogen'' will make sure to run the command ''<nowiki>git submodule update --init doc</nowiki>''. 
- 
-  * FIXME How to keep documentation in sync e.g. the submodule points to a particular reference, when the doc gets updated new references are created and the project should point to the new reference. 
- 
-More information about git submodule can be found in the [[http://book.git-scm.com/5_submodules.html|Git Book]].