docsy support
This commit is contained in:
		| @@ -7,7 +7,7 @@ trigger: | |||||||
|     - master |     - master | ||||||
|  |  | ||||||
| steps: | steps: | ||||||
| - name: Budowanie strony  | - name: Budowanie dokcumentacji  | ||||||
|   image: paramah/hugo-deploy |   image: paramah/hugo-deploy | ||||||
|   commands: |   commands: | ||||||
|   - npm install -D --save autoprefixer |   - npm install -D --save autoprefixer | ||||||
| @@ -16,7 +16,7 @@ steps: | |||||||
|   - hugo --destination /drone/src/build |   - hugo --destination /drone/src/build | ||||||
|   - minify -r -o /drone/src/build /drone/src/build |   - minify -r -o /drone/src/build /drone/src/build | ||||||
|  |  | ||||||
| - name: Deploy strony | - name: Deploy dokumentacji | ||||||
|   image: paramah/hugo-deploy |   image: paramah/hugo-deploy | ||||||
|   commands: |   commands: | ||||||
|   - eval `ssh-agent -s` |   - eval `ssh-agent -s` | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | /public/ | ||||||
|  | /resources/_gen/ | ||||||
|  | hugo_stats.json | ||||||
|  | public/ | ||||||
|  | resources/ | ||||||
|  | node_modules/ | ||||||
|  | init_docsy.sh | ||||||
							
								
								
									
										34
									
								
								DOCSY_DEPLOY.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								DOCSY_DEPLOY.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | |||||||
|  | # Docsy hugo deploy | ||||||
|  |  | ||||||
|  | Skrypt umożliwia szybki automatyczny deploy dokumentacji opartej o [docsy](https://www.docsy.dev/docs/). | ||||||
|  |  | ||||||
|  | # Zawiera | ||||||
|  |  | ||||||
|  | `.gitignore` dla hugo  | ||||||
|  | `init.sh` skrypt inicjujący repozytorium dla docsy (subrepo dla tematu) | ||||||
|  | `.drone.yml` skrypt do automatycznego deploymentu | ||||||
|  |  | ||||||
|  | # Wymagania | ||||||
|  |  | ||||||
|  | - [drone.io cli](https://docs.drone.io/cli/install/) | ||||||
|  | - [hugo](https://gohugo.io/getting-started/installing/) | ||||||
|  |  | ||||||
|  | # Użycie | ||||||
|  |  | ||||||
|  | Musimy aktywować repozytorium na naszym drone.io | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | cat ${args[0]} |awk -F\= '{system("drone secret add --repository='${args[1]}' --name="$1 "  --data="$2)}' | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | Wymagane zmienne: | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | domain= | ||||||
|  | site_path= | ||||||
|  | ssh_host= | ||||||
|  | ssh_username= | ||||||
|  | ssh_password= | ||||||
|  | ssh_port= | ||||||
|  | ``` | ||||||
|  |  | ||||||
| @@ -1,19 +0,0 @@ | |||||||
| # Drone hugo |  | ||||||
|  |  | ||||||
| ## Użycie |  | ||||||
|  |  | ||||||
| ``` |  | ||||||
| cat ${args[0]} |awk -F\= '{system("drone secret add --repository='${args[1]}' --name="$1 "  --data="$2)}' |  | ||||||
| ``` |  | ||||||
|  |  | ||||||
| Wymagane zmienne: |  | ||||||
|  |  | ||||||
| ``` |  | ||||||
| domain= |  | ||||||
| site_path= |  | ||||||
| ssh_host= |  | ||||||
| ssh_username= |  | ||||||
| ssh_password= |  | ||||||
| ssh_port= |  | ||||||
| ``` |  | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user