Skip to content

Commit 085d02a

Browse files
Ticket #6 : Add Documentation
1 parent 28dcf47 commit 085d02a

File tree

6 files changed

+53
-17
lines changed

6 files changed

+53
-17
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@
44

55
FaasNet makes it easy to deploy functions and API to Kubernetes without repetitive, boiler-plate coding.
66

7-
For project documentation, please visit [docs](https://simpleidserver.github.io/FaasNet/).
7+
For project documentation, please visit [docs](https://simpleidserver.github.io/FaasNet/).
8+
9+
## Command Line
10+
11+
| Command | Description |
12+
| -------------------------- | --------------------------------------- |
13+
| psake publishHelmAndWebsite | Publish Helm Charts and the website |

default.ps1

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ task publish {
2323
exec { dotnet publish $source_dir\FaasNet.Runtime.Transform\FaasNet.Runtime.Transform.csproj -c $config -o $result_dir\services\RuntimeTransform }
2424
exec { dotnet publish $source_dir\FaasNet.Kubernetes\FaasNet.Kubernetes.csproj -c $config -o $result_dir\services\Kubernetes }
2525
exec { dotnet publish $source_dir\FaasNet.Gateway.Startup\FaasNet.Gateway.Startup.csproj -c $config -o $result_dir\services\Gateway }
26-
exec { dotnet publish $source_dir\FaasNet.CLI\FaasNet.CLI.csproj -c $config $result_dir\cli }
26+
exec { dotnet publish $source_dir\FaasNet.CLI\FaasNet.CLI.csproj -c $config -o $result_dir\cli }
2727
}
2828

2929
task clean {
@@ -48,10 +48,27 @@ task compile -depends clean {
4848
exec { dotnet build .\FaasNet.sln -c $config --version-suffix=$buildSuffix }
4949
}
5050

51-
task publishWebsite {
51+
task publishHelmAndWebsite {
52+
exec { git checkout gh-pages }
53+
exec { Get-ChildItem -Path . -Include *.* -File -Recurse | foreach { $_.Delete()} }
54+
exec { git add . }
55+
exec { git commit -m "Remove" }
56+
exec { git checkout master }
5257
exec { docfx ./docs/docfx.json }
58+
rd "$base_dir\docs\charts" -recurse -force -ErrorAction SilentlyContinue | out-null
59+
exec { helm package ./helm -d ./docs/charts }
60+
exec { Copy-item "./helm/Chart.yaml" -Destination "./docs/charts" }
61+
exec { helm repo index ./docs/charts }
62+
exec { Remove-Item "./docs/charts/Chart.yaml" }
63+
exec { Copy-item -Force -Recurse -Verbose "./docs/_site/*" -Destination "." }
64+
exec { git checkout gh-pages --merge }
65+
exec { git add . }
66+
exec { git commit -m "Update Documentation" }
67+
exec { git rebase -i HEAD~2 }
68+
exec { git push origin gh-pages }
69+
exec { git checkout master }
5370
}
54-
71+
5572
task pack -depends release, compile {
5673
}
5774

docs/charts/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

docs/charts/Chart.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/charts/faasnet-0.0.1.tgz

103 Bytes
Binary file not shown.

docs/charts/index.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ entries:
33
faasnet:
44
- apiVersion: v1
55
appVersion: 0.0.1
6-
created: "2021-09-21T21:11:54.9950703+02:00"
6+
created: "2021-09-22T14:03:40.2331969+02:00"
77
description: A helm chart to install faasnet
8-
digest: c1e3723fd8a8c8ab49465d3b485ee795641cde4075055455370d0242201620ce
8+
digest: f026cd42897393607222fdb81cb1cd1c115ddb2f2a70099142d5f3266d23b678
99
home: https://github.com/simpleidserver/FaasNet
1010
maintainers:
1111
@@ -14,4 +14,4 @@ entries:
1414
urls:
1515
- faasnet-0.0.1.tgz
1616
version: 0.0.1
17-
generated: "2021-09-21T21:11:54.9940938+02:00"
17+
generated: "2021-09-22T14:03:40.2331969+02:00"

0 commit comments

Comments
 (0)