diff --git a/.gitignore b/.gitignore index 54088d5..d7901f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ target .DS_Store +outrun-site/public +public diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b48d765..f589d77 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,9 +10,11 @@ build: key: "$CI_JOB_NAME" paths: - $HOME/.cargo + - target/ artifacts: paths: - $HOME/.cargo + - target/ expire_in: 60 mins script: - cargo test --no-run --release @@ -43,3 +45,18 @@ cargo clippy: # - branches # script: # - cargo publish --token $CARGO_TOKEN + +pages: + stage: release + image: docker:stable + variables: + GIT_SUBMODULE_STRATEGY: recursive + services: + - docker:dind + script: + - docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app ghcr.io/getzola/zola:v0.16.0 --root outrun-site/ build --output-dir public + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6507375 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "outrun-site/themes/adidoks"] + path = outrun-site/themes/adidoks + url = https://github.com/aaranxu/adidoks.git diff --git a/outrun-site/config.toml b/outrun-site/config.toml new file mode 100644 index 0000000..295492c --- /dev/null +++ b/outrun-site/config.toml @@ -0,0 +1,129 @@ +# Put all your custom variables here +# The URL the site will be built for +base_url = "https://outrun.rocks" +description = "The most retro-futuristic language in the world" +title = "Outrun" + +# The site theme to use. +theme = "adidoks" + +# The default language; used in feeds and search index +# Note: the search index doesn't support Chinese/Japanese/Korean Languages +default_language = "en" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to generate a feed file for the site +generate_feed = true + +# When set to "true", the generated HTML files are minified. +minify_html = false + +# The taxonomies to be rendered for the site and their configuration. +taxonomies = [ + {name = "authors"}, # Basic definition: no feed or pagination +] + +# Whether to build a search index to be used later on by a JavaScript library +# When set to "true", a search index is built from the pages and section +# content for `default_language`. +build_search_index = true + +[search] +# Whether to include the title of the page/section in the index +include_title = true +# Whether to include the description of the page/section in the index +include_description = false +# Whether to include the rendered content of the page/section in the index +include_content = true + +[markdown] +# Whether to do syntax highlighting. +# Theme can be customised by setting the `highlight_theme` +# variable to a theme supported by Zola +highlight_code = true + +[extra] +# Put all your custom variables here +author = "James Harton" +email = "james@harton.nz" +github = "https://github.com/jimsynz" + +# If running on netlify.app site, set to true +is_netlify = false + +# Set HTML file language +language_code = "en-NZ" + +# Set theme-color meta tag for Chrome browser +theme_color = "#fff" + +# More about site's title +title_addition = "Outrun" +title_separator = "|" # set as |, -, _, etc + +# Set date format in blog publish metadata +timeformat = "%B %e, %Y" # e.g. June 14, 2021 +timezone = "Pacific/Auckland" + +# Edit page on reposity or not +docs_repo = "https://gitlab.com/jimsy/outrun" +edit_page = true +repo_branch = "main" + +## Math settings +# options: true, false. Enable math support globally, +# default: false. You can always enable math on a per page. +library = "katex" # options: "katex", "mathjax". default is "katex". +math = false + +## Open Graph + Twitter Cards +[extra.open] +enable = false +# this image will be used as fallback if a page has no image of its own +image = "doks.png" +og_locale = "en_NZ" + +## JSON-LD +[extra.schema] +github = "https://github.com/jimsynz" +logo = "logo-doks.png" +section = "blog" # see config.extra.main~url +type = "Organization" +## Sitelinks Search Box +site_links_search_box = false + +# Menu items +[[extra.menu.main]] +name = "Docs" +section = "docs" +url = "/docs/getting-started/introduction/" +weight = 10 + +[[extra.menu.main]] +name = "Blog" +section = "blog" +url = "/blog/" +weight = 20 + +[[extra.menu.social]] +name = "GitLab" +post = "v0.1.0" +pre = '' +url = "https://gitlab.com/jimsy/outrun" +weight = 20 + +# Footer contents +[extra.footer] +info = 'Powered by Zola and AdiDoks' + +[[extra.footer.nav]] +name = "Privacy" +url = "/privacy-policy/" +weight = 10 + +[[extra.footer.nav]] +name = "Code of Conduct" +url = "/docs/contributing/code-of-conduct/" +weight = 20 diff --git a/outrun-site/content/_index.md b/outrun-site/content/_index.md new file mode 100644 index 0000000..eb5879e --- /dev/null +++ b/outrun-site/content/_index.md @@ -0,0 +1,23 @@ ++++ +title = "Outrun" + +[extra] +lead = 'The most retro-futuristic programming language on the planet' +url = '/docs/get-started' +url_button = 'Get Started' + +repo_license='HL3-FULL' +repo_url='https://gitlab.com/jimsy/outrun' +repo_version='v0.1.0' + +[[extra.menu.main]] +name = 'Docs' +section = 'docs' +url = 'docs/get-started' +weight = 10 + +[[extra.list]] +title = "Made out of crabs" +content = 'Built out of 100% Rusty goodness.' + ++++ diff --git a/outrun-site/content/docs/_index.md b/outrun-site/content/docs/_index.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/outrun-site/content/docs/_index.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/outrun-site/content/docs/get-started/_index.md b/outrun-site/content/docs/get-started/_index.md new file mode 100644 index 0000000..6b03cf9 --- /dev/null +++ b/outrun-site/content/docs/get-started/_index.md @@ -0,0 +1,10 @@ ++++ +title = "Getting Started" +description = "Quickstart guide for installing and using Outrun" +date = 2025-05-01T08:00:00+00:00 +updated = 2021-05-01T08:00:00+00:00 +template = "docs/section.html" +sort_by = "weight" +weight = 1 +draft = false ++++ diff --git a/outrun-site/content/docs/get-started/introduction.md b/outrun-site/content/docs/get-started/introduction.md new file mode 100644 index 0000000..ff3dd5d --- /dev/null +++ b/outrun-site/content/docs/get-started/introduction.md @@ -0,0 +1,14 @@ ++++ +title = "Introduction" +description = "What is this thing?" +updated = 2021-05-01T08:00:00+00:00 +draft = false +weight = 10 +sort_by = "weight" +template = "docs/page.html" + +[extra] +lead = 'What is this thing?' +toc = true +top = false ++++ diff --git a/outrun-site/static/midjourney_outrun_logo.png b/outrun-site/static/midjourney_outrun_logo.png new file mode 100644 index 0000000..58017b6 Binary files /dev/null and b/outrun-site/static/midjourney_outrun_logo.png differ diff --git a/outrun-site/static/outrun_logo_small.png b/outrun-site/static/outrun_logo_small.png new file mode 100644 index 0000000..f823a2d Binary files /dev/null and b/outrun-site/static/outrun_logo_small.png differ diff --git a/outrun-site/templates/_variables.html b/outrun-site/templates/_variables.html new file mode 100644 index 0000000..0601ada --- /dev/null +++ b/outrun-site/templates/_variables.html @@ -0,0 +1,50 @@ + + + + \ No newline at end of file diff --git a/outrun-site/themes/adidoks b/outrun-site/themes/adidoks new file mode 160000 index 0000000..5c69827 --- /dev/null +++ b/outrun-site/themes/adidoks @@ -0,0 +1 @@ +Subproject commit 5c698271c460046034605b743a15196b12e32887