diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..a20c456d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,28 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll +{ + "name": "Jekyll", + "image": "mcr.microsoft.com/devcontainers/jekyll:2-bookworm", + "features": { + "ghcr.io/devcontainers/features/node:1": {} + }, + "forwardPorts": [4000], + "containerEnv": { + "WX_SITE_DIR": "${containerWorkspaceFolder}" + }, + "postCreateCommand": { + "bootstrap": "./.devcontainer/postCreateCommand.sh", + "assets": "yarn && yarn dist", + "jekyll": "bundle exec jekyll serve" + }, + "customizations": { + "vscode": { + "settings": { + "files.eol": "\n" + }, + "extensions": [ + "shopify.ruby-lsp" + ] + } + } +} diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh new file mode 100755 index 00000000..d218ee0d --- /dev/null +++ b/.devcontainer/postCreateCommand.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -ex + +ruby update_release_info.rb +ruby _cron/update_download_stats.rb + +git clone --depth=1 https://github.com/wxWidgets/wxWidgets.git + +_cron/update_wxxrc_schema.sh +_cron/update_translation_stats.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6313b56c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.gitignore b/.gitignore index 29bee687..575da520 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /_site/ /node_modules/ /vendor +/wxWidgets/ *.log # Compiled Assets @@ -19,3 +20,7 @@ # Download stats files /_data/release_assets/*.json /downloads/downloads.json + +# XRC Schemas copied from wxWidgets repo +/schemas/xrc_schema_builtin_only.rnc +/schemas/xrc_schema.rnc