From 74e565b633fc1987bb6a0f1e4c61da890aaad3db Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Mon, 9 Apr 2018 12:22:20 -0400 Subject: [PATCH] Add one more real world example --- doc/data/users.toml | 59 +++++++++++++++++------------- doc/layouts/_default/examples.html | 2 +- 2 files changed, 34 insertions(+), 27 deletions(-) diff --git a/doc/data/users.toml b/doc/data/users.toml index 5f0e00c..9c60be3 100644 --- a/doc/data/users.toml +++ b/doc/data/users.toml @@ -1,137 +1,144 @@ # [unique_key] # This can be any unique string, would suffice to set this to your GitHub/Gitlab/etc. username # author = "Foo Bar" -# source = "Git repo of your site; needs to have the Org source" # End this with forward-slash +# source = "Git repo of your site; needs to have the Org source" # branch = "git branch containing Org source; defaults to master if not set" # org_dir = "Dir in the repo containing Org source" # Don't set this if Org file is in your repo root. # site = "https://your.site/" [00-ox-hugo-doc] author = "Kaushal Modi" - source = "https://github.com/kaushalmodi/ox-hugo/" + source = "https://github.com/kaushalmodi/ox-hugo" branch = "master" org_dir = "doc" site = "https://ox-hugo.scripter.co/" [01-ox-hugo-test] author = "Kaushal Modi" - source = "https://github.com/kaushalmodi/ox-hugo/" + source = "https://github.com/kaushalmodi/ox-hugo" branch = "master" org_dir = "test/site/content-org" site = "https://ox-hugo.scripter.co/test/" [02-scripter-co] author = "Kaushal Modi" - source = "https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/" + source = "https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io" branch = "master" org_dir = "content-org" site = "https://scripter.co/" [oscarnajera] author = "Óscar Nájera" - source = "https://gitlab.com/Titan-C/titan-c.gitlab.io/" + source = "https://gitlab.com/Titan-C/titan-c.gitlab.io" branch = "master" site = "https://blog.oscarnajera.com/" [punchagan] author = "Puneeth Chaganti" - source = "https://github.com/punchagan/punchagan.muse-amuse.in/" + source = "https://github.com/punchagan/punchagan.muse-amuse.in" branch = "master" org_dir = "content-org" site = "https://punchagan.muse-amuse.in/" +[aradhana] + author = "Puneeth Chaganti" + source = "https://github.com/punchagan/aradhana.org" + branch = "master" + org_dir = "content-org" + site = "http://aradhana.org/" + +[thatteidlikaalsoup] + author = "Puneeth Chaganti" + source = "https://github.com/thatte-idli-kaal-soup/thatteidlikaalsoup.team" + branch = "master" + org_dir = "content-org" + site = "https://thatteidlikaalsoup.team/" + [lambdaloop] author = "Pierre Karashchuk" - source = "https://github.com/lambdaloop/blog/" + source = "https://github.com/lambdaloop/blog" branch = "master" org_dir = "blog-org" site = "http://lambdaloop.com/" [shimmy] author = "Shimmy Xu" - source = "https://github.com/shimmy1996/blog/" + source = "https://github.com/shimmy1996/blog" branch = "master" org_dir = "org" site = "https://www.shimmy1996.com/" [isaaczhou] author = "Isaac Zhou" - source = "https://github.com/isaaczhou/isaaczhou.github.io/" + source = "https://github.com/isaaczhou/isaaczhou.github.io" branch = "dev" org_dir = "org" site = "http://www.isaaczhou.com/" [zzamboni] author = "Diego Zamboni" - source = "https://github.com/zzamboni/zzamboni.org/" + source = "https://github.com/zzamboni/zzamboni.org" branch = "master" org_dir = "content-org" site = "http://zzamboni.org/" [primerpy] author = "Isaac Zhou" - source = "https://github.com/primerpy/primerpy.github.io/" + source = "https://github.com/primerpy/primerpy.github.io" branch = "dev" org_dir = "org" site = "http://www.primerpy.com/" [dmolina] author = "Daniel Molina" - source = "https://github.com/dmolina/my-blog/" + source = "https://github.com/dmolina/my-blog" branch = "master" org_dir = "content_org" site = "https://dmolina.github.io/" [shanesveller] author = "Shane Sveller" - source = "https://github.com/shanesveller/shanesveller-dot-com/" + source = "https://github.com/shanesveller/shanesveller-dot-com" branch = "master" site = "https://www.shanesveller.com/" -[aradhana] - author = "Puneeth Chaganti" - source = "https://github.com/punchagan/aradhana.org/" - branch = "master" - org_dir = "content-org" - site = "http://aradhana.org/" - [edkolev] author = "Evgeni Kolev" - source = "https://github.com/edkolev/edkolev.github.io/" + source = "https://github.com/edkolev/edkolev.github.io" branch = "source" org_dir = "content-org" site = "http://evgeni.io/" [vinurs] author = "vinurs" - source = "https://github.com/vinurs/vinurs.github.io/" + source = "https://github.com/vinurs/vinurs.github.io" branch = "source" org_dir = "content-org" site = "https://vinurs.me/" [cf-learn] author = "Diego Zamboni" - source = "https://github.com/zzamboni/cf-learn.info/" + source = "https://github.com/zzamboni/cf-learn.info" branch = "master" org_dir = "content-org" site = "http://cf-learn.info/" [xianmin] author = "Xianmin Chen" - source = "https://coding.net/u/xianmin/p/xianmin/git/" + source = "https://coding.net/u/xianmin/p/xianmin/git" branch = "master" org_dir = "orgpost" site = "https://xianmin.org/" [xianmin-en] author = "Xianmin Chen" - source = "https://coding.net/u/xianmin/p/en.xianmin.org/git/" + source = "https://coding.net/u/xianmin/p/en.xianmin.org/git" branch = "master" org_dir = "orgpost" site = "http://en.xianmin.org/" [use-package] author = "John Wiegley" - source = "https://github.com/jwiegley/use-package/" + source = "https://github.com/jwiegley/use-package" branch = "master" site = "https://jwiegley.github.io/use-package/" diff --git a/doc/layouts/_default/examples.html b/doc/layouts/_default/examples.html index 02d300e..36eec34 100644 --- a/doc/layouts/_default/examples.html +++ b/doc/layouts/_default/examples.html @@ -10,7 +10,7 @@ AuthorSiteOrg Source {{ range $key, $val := . }} {{ $org_dir := $val.org_dir | default "" | replaceRE "/$" "" }} - {{ $org_src := (printf "%stree/%s/%s" $val.source ($val.branch | default "master") $org_dir) }} + {{ $org_src := (printf "%s/tree/%s/%s" ($val.source | replaceRE "/$" "") ($val.branch | default "master") $org_dir) }} {{ $val.author }} {{ printf "%s" $val.site ($val.site | replaceRE "^https?://" "" | replaceRE "/$" "") | safeHTML }}