mirror of https://github.com/sobolevn/git-secret
Changes how docs are built
parent
ce73d9d43c
commit
ca500fa13f
@ -0,0 +1,6 @@
|
|||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
group :jekyll_plugins do
|
||||||
|
gem "jekyll", ">= 3.6.3"
|
||||||
|
gem "jekyll-seo-tag", "~> 2.7.1"
|
||||||
|
end
|
@ -0,0 +1,70 @@
|
|||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
addressable (2.7.0)
|
||||||
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
|
colorator (1.1.0)
|
||||||
|
concurrent-ruby (1.1.7)
|
||||||
|
em-websocket (0.5.2)
|
||||||
|
eventmachine (>= 0.12.9)
|
||||||
|
http_parser.rb (~> 0.6.0)
|
||||||
|
eventmachine (1.2.7)
|
||||||
|
ffi (1.14.2)
|
||||||
|
forwardable-extended (2.6.0)
|
||||||
|
http_parser.rb (0.6.0)
|
||||||
|
i18n (1.8.5)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
jekyll (4.2.0)
|
||||||
|
addressable (~> 2.4)
|
||||||
|
colorator (~> 1.0)
|
||||||
|
em-websocket (~> 0.5)
|
||||||
|
i18n (~> 1.0)
|
||||||
|
jekyll-sass-converter (~> 2.0)
|
||||||
|
jekyll-watch (~> 2.0)
|
||||||
|
kramdown (~> 2.3)
|
||||||
|
kramdown-parser-gfm (~> 1.0)
|
||||||
|
liquid (~> 4.0)
|
||||||
|
mercenary (~> 0.4.0)
|
||||||
|
pathutil (~> 0.9)
|
||||||
|
rouge (~> 3.0)
|
||||||
|
safe_yaml (~> 1.0)
|
||||||
|
terminal-table (~> 2.0)
|
||||||
|
jekyll-sass-converter (2.1.0)
|
||||||
|
sassc (> 2.0.1, < 3.0)
|
||||||
|
jekyll-seo-tag (2.7.1)
|
||||||
|
jekyll (>= 3.8, < 5.0)
|
||||||
|
jekyll-watch (2.2.1)
|
||||||
|
listen (~> 3.0)
|
||||||
|
kramdown (2.3.0)
|
||||||
|
rexml
|
||||||
|
kramdown-parser-gfm (1.1.0)
|
||||||
|
kramdown (~> 2.0)
|
||||||
|
liquid (4.0.3)
|
||||||
|
listen (3.3.3)
|
||||||
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
|
mercenary (0.4.0)
|
||||||
|
pathutil (0.16.2)
|
||||||
|
forwardable-extended (~> 2.6)
|
||||||
|
public_suffix (4.0.6)
|
||||||
|
rb-fsevent (0.10.4)
|
||||||
|
rb-inotify (0.10.1)
|
||||||
|
ffi (~> 1.0)
|
||||||
|
rexml (3.2.3)
|
||||||
|
rouge (3.26.0)
|
||||||
|
safe_yaml (1.0.5)
|
||||||
|
sassc (2.4.0)
|
||||||
|
ffi (~> 1.9)
|
||||||
|
terminal-table (2.0.0)
|
||||||
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||||
|
unicode-display_width (1.7.0)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
x86_64-linux-musl
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
jekyll (>= 3.6.3)
|
||||||
|
jekyll-seo-tag (~> 2.7.1)
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
2.2.2
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-cat'
|
title: 'git-secret-cat'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-cat
|
permalink: git-secret-cat
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-changes'
|
title: 'git-secret-changes'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-changes
|
permalink: git-secret-changes
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-clean'
|
title: 'git-secret-clean'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-clean
|
permalink: git-secret-clean
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-hide'
|
title: 'git-secret-hide'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-hide
|
permalink: git-secret-hide
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-init'
|
title: 'git-secret-init'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-init
|
permalink: git-secret-init
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-killperson'
|
title: 'git-secret-killperson'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-killperson
|
permalink: git-secret-killperson
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-list'
|
title: 'git-secret-list'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-list
|
permalink: git-secret-list
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-remove'
|
title: 'git-secret-remove'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-remove
|
permalink: git-secret-remove
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-reveal'
|
title: 'git-secret-reveal'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-reveal
|
permalink: git-secret-reveal
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-usage'
|
title: 'git-secret-usage'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-usage
|
permalink: git-secret-usage
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
title: 'git-secret-whoknows'
|
title: 'git-secret-whoknows'
|
||||||
date: 2020-09-20 15:12:56 -0400
|
date: 2021-05-04 12:15:29 +0300
|
||||||
permalink: git-secret-whoknows
|
permalink: git-secret-whoknows
|
||||||
categories: command
|
categories: command
|
||||||
---
|
---
|
@ -0,0 +1,62 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Should be called from the root folder, not inside `docs/` folder
|
||||||
|
# See `make build-docs`
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
MAN_LOCATION='man/man1'
|
||||||
|
MAN7_LOCATION='man/man7'
|
||||||
|
POSTS_LOCATION='docs/_posts'
|
||||||
|
|
||||||
|
|
||||||
|
function checkout_manuals {
|
||||||
|
cp -r man/ docs/man
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function copy_to_posts {
|
||||||
|
# Cleaning old files:
|
||||||
|
rm -f "$POSTS_LOCATION/*.md"
|
||||||
|
rm -rf "$POSTS_LOCATION"
|
||||||
|
mkdir -p "$POSTS_LOCATION"
|
||||||
|
|
||||||
|
# Moving new command files:
|
||||||
|
local timestamp
|
||||||
|
local current_date
|
||||||
|
|
||||||
|
timestamp=$(date "+%Y-%m-%d %H:%M:%S %z")
|
||||||
|
current_date=$(date "+%Y-%m-%d")
|
||||||
|
|
||||||
|
# Creating command refernce:
|
||||||
|
for com in $MAN_LOCATION/git-secret-*.1.md; do
|
||||||
|
local short_name
|
||||||
|
short_name=$(echo "$com" | sed -n "s|$MAN_LOCATION/\(.*\)\.1\.md|\1|p")
|
||||||
|
local command_header="---
|
||||||
|
layout: post
|
||||||
|
title: '${short_name}'
|
||||||
|
date: ${timestamp}
|
||||||
|
permalink: ${short_name}
|
||||||
|
categories: command
|
||||||
|
---"
|
||||||
|
|
||||||
|
local post_filename="$POSTS_LOCATION/${current_date}-${short_name}.md"
|
||||||
|
echo "$command_header" > "$post_filename"
|
||||||
|
cat "$com" >> "$post_filename"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Creating main usage file:
|
||||||
|
local usage_header="---
|
||||||
|
layout: post
|
||||||
|
title: 'git-secret'
|
||||||
|
date: ${timestamp}
|
||||||
|
permalink: git-secret
|
||||||
|
categories: usage
|
||||||
|
---"
|
||||||
|
local usage_filename="$POSTS_LOCATION/${current_date}-git-secret.md"
|
||||||
|
echo "$usage_header" > "$usage_filename"
|
||||||
|
cat "$MAN7_LOCATION/git-secret.7.md" >> "$usage_filename"
|
||||||
|
}
|
||||||
|
|
||||||
|
checkout_manuals
|
||||||
|
copy_to_posts
|
Loading…
Reference in New Issue