diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0ac0ed3b9be1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# Hugo-generated assets +public/ +resources/ + +# npm assets +node_modules/ diff --git a/Makefile b/Makefile new file mode 100644 index 000000000000..7a2bcfc06a26 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +serve: + hugo server \ + --buildDrafts \ + --buildFuture + +preview-build: + hugo \ + --baseURL $(DEPLOY_PRIME_URL) \ + --minify + +production-build: + hugo \ + --minify \ No newline at end of file diff --git a/assets/sass/helpers.sass b/assets/sass/helpers.sass new file mode 100644 index 000000000000..aab3dec0ae41 --- /dev/null +++ b/assets/sass/helpers.sass @@ -0,0 +1,10 @@ +=flex + display: flex + +=column + +flex + flex-direction: column + +=full-height-column + +column + min-height: 100vh \ No newline at end of file diff --git a/assets/sass/page.sass b/assets/sass/page.sass new file mode 100644 index 000000000000..92a59956a3e8 --- /dev/null +++ b/assets/sass/page.sass @@ -0,0 +1,5 @@ +.page + +full-height-column + + .main + flex: 1 \ No newline at end of file diff --git a/assets/sass/style.sass b/assets/sass/style.sass new file mode 100644 index 000000000000..01bb5af779c0 --- /dev/null +++ b/assets/sass/style.sass @@ -0,0 +1,29 @@ +{{ $fonts := site.Params.fonts }} +{{ $fontSlice := (slice) }} +{{ range $fonts }} +{{ $fontSlice = $fontSlice | append (printf "%s:%s" (replace .name " " "+") (delimit .sizes ",")) }} +{{ end }} +{{ $fontsUrl := printf "https://fonts.googleapis.com/css?family=%s" (delimit $fontSlice "|") }} +{{ $sansSerifFont := (index (where $fonts "type" "sans_serif") 0).name }} +{{ $monospaceFont := (index (where $fonts "type" "monospace") 0).name }} +{{ $fontAwesomeVersion := site.Params.font_awesome_version }} +{{ $fontAwesomeUrl := printf "https://use.fontawesome.com/releases/v%s/css/all.css" $fontAwesomeVersion }} + +@charset "utf-8" +@import url({{ $fontsUrl }}) +@import url({{ $fontAwesomeUrl }}) + +@import "variables" +@import "bulma/sass/utilities/initial-variables" +@import "bulma/sass/utilities/functions" + +// Bulma variable overwrites +$primary: $opentelemetry-blue +$family-sans-serif: "{{ $sansSerifFont }}", BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif +$family-code: "{{ $monospaceFont }}", monospace + +@import "bulma/sass/utilities/derived-variables" +@import "bulma/bulma" + +@import "helpers" +@import "page" \ No newline at end of file diff --git a/assets/sass/variables.sass b/assets/sass/variables.sass new file mode 100644 index 000000000000..61e369fa89de --- /dev/null +++ b/assets/sass/variables.sass @@ -0,0 +1 @@ +$opentelemetry-blue: #0979b9 diff --git a/config.toml b/config.toml new file mode 100644 index 000000000000..c98405d90a35 --- /dev/null +++ b/config.toml @@ -0,0 +1,16 @@ +title = "OpenTelemetry" +baseURL = "https://opentelemetry.io" +disableKinds = ["taxonomy", "taxonomyTerm"] + +[params] +font_awesome_version = "5.8.1" + +[[params.fonts]] +name = "Roboto" +sizes = [300,400,600,700] +type = "sans_serif" + +[[params.fonts]] +name = "Roboto Mono" +sizes = [400] +type = "monospace" \ No newline at end of file diff --git a/content/.gitkeep b/content/.gitkeep new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 000000000000..74fc3b76a487 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,14 @@ + + +
+ {{ partial "css.html" . }} + + ++ {{ $title }} +
+