celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject celix-site git commit: CELIX-449: Adds celix src as submodule and a sh script to copy the documents markdown files
Date Mon, 02 Jul 2018 19:20:56 GMT
Repository: celix-site
Updated Branches:
  refs/heads/asf-site 8c5adfd20 -> 49775f7ea


CELIX-449: Adds celix src as submodule and a sh script to copy the documents markdown files


Project: http://git-wip-us.apache.org/repos/asf/celix-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix-site/commit/49775f7e
Tree: http://git-wip-us.apache.org/repos/asf/celix-site/tree/49775f7e
Diff: http://git-wip-us.apache.org/repos/asf/celix-site/diff/49775f7e

Branch: refs/heads/asf-site
Commit: 49775f7ea15bc6a2b80a99a4a9d45e02995647eb
Parents: 8c5adfd
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Mon Jul 2 21:20:18 2018 +0200
Committer: Pepijn Noltes <pepijnnoltes@gmail.com>
Committed: Mon Jul 2 21:20:18 2018 +0200

----------------------------------------------------------------------
 .gitmodules                      |  3 +++
 celix-src                        |  1 +
 copy_docs_from_src_to_content.sh | 11 +++++++++++
 3 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix-site/blob/49775f7e/.gitmodules
----------------------------------------------------------------------
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..63bec40
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "celix-src"]
+	path = celix-src
+	url = https://git-wip-us.apache.org/repos/asf/celix.git

http://git-wip-us.apache.org/repos/asf/celix-site/blob/49775f7e/celix-src
----------------------------------------------------------------------
diff --git a/celix-src b/celix-src
new file mode 160000
index 0000000..3f24edf
--- /dev/null
+++ b/celix-src
@@ -0,0 +1 @@
+Subproject commit 3f24edf0bc00b05d28acbbf924851050c23dbccf

http://git-wip-us.apache.org/repos/asf/celix-site/blob/49775f7e/copy_docs_from_src_to_content.sh
----------------------------------------------------------------------
diff --git a/copy_docs_from_src_to_content.sh b/copy_docs_from_src_to_content.sh
new file mode 100755
index 0000000..22ce919
--- /dev/null
+++ b/copy_docs_from_src_to_content.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+src_doc_dir=celix-src/documents
+site_doc_dir=content/documents
+
+for file in `cd ${src_doc_dir}; find . -name \*.md`
+do
+    dest=`dirname ${file}`
+    mkdir -p ${site_doc_dir}/${dest}
+    cp -v ${src_doc_dir}/${file} ${site_doc_dir}/${dest}/index.md
+done


Mime
View raw message