Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
madispp committed Jul 26, 2019
0 parents commit 13612bf
Show file tree
Hide file tree
Showing 144 changed files with 6,931 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .forestry/front_matter/templates/docs-base-article.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
label: Base documentation article
hide_body: false
fields:
- name: title
label: Title
type: text
hidden: false
default: ''
description: Title for SEO, page and title
- name: description
label: Description
type: text
hidden: false
default: ''
description: Description for SEO
- name: thumbnail
label: Thumbnail
type: file
hidden: false
default: ''
description: Thumbnail and post hero
- type: include
template: twitter-data
label: Twitter metadata fields
name: twitterData
- type: include
template: facebook-data
label: Facebook metadata fields
name: facebookData
- type: list
name: categories
label: Category
description: Category
config:
use_select: true
source:
type: documents
file: content/_index.md
path: category_names
section: docs
min: '1'
max: '1'
- type: number
name: weight
label: Weight
default: '0'
description: Importance in ordering (bigger number comes earlier)
config:
step: '1'
required: true
56 changes: 56 additions & 0 deletions .forestry/front_matter/templates/documentation-article.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
label: Documentation article
hide_body: false
fields:
- type: include
name: baseDocumentationArticle
label: Base documentation article
template: docs-base-article
description: Standard fields for all documentation articles
- type: field_group
name: menu
label: Menu
hidden: true
fields:
- type: field_group
name: docs_sidebar
label: Docs sidebar
hidden: true
fields:
- type: number
name: weight
label: Weight
hidden: false
default: '1'
config:
step: '1'
pages:
- content/troubleshooting/codemagic-status-page.md
- content/troubleshooting/accessing-builder-machine-via-ssh.md
- content/building/build-versioning.md
- content/building/dependency-caching.md
- content/building/specifying-custom-ios-scheme.md
- content/testing/running-automated-tests.md
- content/building/building-android-app-bundles.md
- content/publishing/publishing-to-codemagic-static-pages.md
- content/custom-scripts/upload-custom-artifacts.md
- content/custom-scripts/access-private-git-submodules.md
- content/custom-scripts/publish-build-artifacts-to-amazon-s3.md
- content/custom-scripts/load-firebase-configuration.md
- content/code-signing/android-code-signing.md
- content/custom-scripts/add-a-git-tag-with-app-version.md
- content/building/building-for-the-web.md
- content/testing/beta-testing-with-testmagic.md
- content/custom-scripts/run-static-code-analysis.md
- content/testing/static-code-analysis.md
- content/testing/running-tests-only.md
- content/testing/testing-widgets.md
- content/building/environment-variables.md
- content/getting-started/creating-workflows.md
- content/publishing/publishing-to-app-store.md
- content/code-signing/ios-code-signing.md
- content/publishing/publishing-to-google-play.md
- content/getting-started/automatic-language-detection.md
- content/getting-started/multiple-projects-in-one-repository.md
- content/getting-started/adding-apps-from-custom-sources.md
- content/building/automatic-build-triggering.md
41 changes: 41 additions & 0 deletions .forestry/front_matter/templates/documentation-home-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
label: Documentation home page
hide_body: false
fields:
- type: text
name: title
label: Title
- type: text
name: description
label: Description
description: Description for SEO
- type: list
name: category_names
label: Category names
config:
use_select: false
source:
type: documents
- type: field_group_list
name: category_values
label: Category values
description: Extra metadata for categories if needed
fields:
- type: select
name: name
config:
source:
type: documents
section: docs
file: content/_index.md
path: category_names
label: Name
description: Name matching the previous list
- type: text
name: title
label: Title
description: Title to override name when displaying
config:
labelField: name
pages:
- content/_index.md
22 changes: 22 additions & 0 deletions .forestry/front_matter/templates/facebook-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
label: Facebook metadata
hide_body: false
fields:
- name: facebook_title
label: Facebook title
type: text
hidden: false
default: ''
description: Facebook title. If not set, post title is used
- name: facebook_description
label: Facebook description
type: text
hidden: false
default: ''
description: Facebook description. If not set, post description is used
- name: facebook_image
label: Facebook image
type: file
hidden: false
default: "/uploads/2019/01/default-thumb.png"
description: Facebook image. If not set, site-wide default Facebook image is used
22 changes: 22 additions & 0 deletions .forestry/front_matter/templates/twitter-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
label: Twitter metadata
hide_body: false
fields:
- name: twitter_title
label: Twitter title
type: text
hidden: false
default: ''
description: Twitter title. If not set, post title is used
- name: twitterDescription
label: Twitter description
type: text
hidden: false
default: ''
description: Twitter description. If not set, post description is used
- name: twitter_image
label: Twitter image
type: file
hidden: false
default: "/uploads/2019/02/twitter.png"
description: Twitter image. If not set, site-wide default Twitter image is used
37 changes: 37 additions & 0 deletions .forestry/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
new_page_extension: md
auto_deploy: false
admin_path: "/enter"
webhook_url:
sections:
- type: directory
path: content
label: Docs
create: all
match: "**/*"
exclude: "/uploads/*"
templates:
- documentation-article
upload_dir: content/uploads
public_path: "/uploads"
front_matter_path: ''
use_front_matter_path: false
file_template: ":year:/:month:/:filename:"
build:
preview_command: "./build.sh"
publish_command: "./build.sh"
preview_env:
- HUGO_ENV=staging
- HUGO_ENVIRONMENT=staging
- HUGO_VERSION=0.55.3
publish_env:
- HUGO_ENV=production
- HUGO_ENVIRONMENT=production
- HUGO_VERSION=0.55.3
preview_output_directory: dist
output_directory: dist
instant_preview_command: hugo server -D -E -F --port 8080 -s site --bind 0.0.0.0
--renderToDisk --cleanDestinationDir --disableFastRender -d dist
preview_docker_image: forestryio/build:latest
mount_path: "/opt/buildhome/repo"
version: 0.55.3
1 change: 1 addition & 0 deletions .forestry/snippets/code-inline.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`inline code`
1 change: 1 addition & 0 deletions .forestry/snippets/drive.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{< drive "1c7Jo0QRXV4mJd-4FenxH6OjrkLIydQo0" >}}
1 change: 1 addition & 0 deletions .forestry/snippets/excerpt.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!--more-->
1 change: 1 addition & 0 deletions .forestry/snippets/figure.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{< figure src="/uploads/Screenshot_20190402-160458.jpg" caption="optional caption goes here" title="optional alt title goes here" size="small" align="left" >}}
1 change: 1 addition & 0 deletions .forestry/snippets/gist.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{< gist spf13 7896402 >}}
4 changes: 4 additions & 0 deletions .forestry/snippets/highlight.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{< highlight html >}}
<header>Hello world!</header>
<main>Hello</main>
{{< /highlight >}}
1 change: 1 addition & 0 deletions .forestry/snippets/instagram.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{< instagram BWNjjyYFxVx >}}
1 change: 1 addition & 0 deletions .forestry/snippets/spotify.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{< spotify 3dIObdYq4t2ImbqquBakT6 >}}
1 change: 1 addition & 0 deletions .forestry/snippets/tweet.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{< tweet 877500564405444608 >}}
1 change: 1 addition & 0 deletions .forestry/snippets/video-gif.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{< video-gif src="/uploads/2019/02/DevJoke-11-2.mp4" >}}
1 change: 1 addition & 0 deletions .forestry/snippets/vimeo.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{< vimeo 36820781 >}}
1 change: 1 addition & 0 deletions .forestry/snippets/youtube.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{< youtube "rMnasxSxfl8?start=23" >}}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/public/
/resources/
.DS_Store
29 changes: 29 additions & 0 deletions .s3deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
routes:
- route: "^.+\\.(js|css|svg|ttf|woff|woff2)$"
# cache static assets for 20 years since they are fingerprinted
headers:
Cache-Control: "max-age=630720000, no-transform, public"
gzip: true
- route: "^.+\\.(ico|pdf|jpg|JPG|jpeg|png|PNG|gif|GIF|mp4|mov|mkv)$"
# images 1 week for now because content images are not fingerprinted
# but without gzip
headers:
Cache-Control: "max-age=604800, no-transform, public"
gzip: false
- route: "^.+\\.(html|xml|json)$"
# 5 minutes for main content and design like pages and search index
headers:
Cache-Control: "max-age=300, no-transform, public"
gzip: true
- route: "^sitemap\\.xml$"
# sitemap
headers:
Cache-Control: "max-age=300, no-transform, public"
Content-Type: "application/xml; charset=utf-8"
gzip: true
- route: "^.+\\.xml$"
# rss
headers:
Cache-Control: "max-age=300, no-transform, public"
Content-Type: "application/rss+xml; charset=utf-8"
gzip: true
41 changes: 41 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "./build.sh",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "serve",
"type": "shell",
"command": "./serve.sh",
"group": "build",
"isBackground": true,
"problemMatcher": {
"severity": "error",
"fileLocation": "absolute",
"owner": "hugo",
"pattern": {
"regexp": "template: (.*):(\\d+): (.*)",
"file": 1,
"location": 2,
"message": 3,
"loop": true
},
"background": {
"activeOnStart": true,
"beginsPattern": "Change detected, rebuilding site",
"endsPattern": "Total in \\d+ ms"
}
}
}
]
}
Loading

0 comments on commit 13612bf

Please sign in to comment.