diff --git a/docs/03-github/01-getting-started.mdx b/docs/03-github/01-getting-started.mdx index 011f5513..dbbca669 100644 --- a/docs/03-github/01-getting-started.mdx +++ b/docs/03-github/01-getting-started.mdx @@ -38,7 +38,7 @@ _**Note:** all steps will be explained in the next chapters._ ### First time using GitHub Actions? Read the official documentation on how to setup a -[workflow](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/configuring-a-workflow). +[workflow](https://docs.github.com/en/actions/writing-workflows/quickstart). Any subsequent steps assume you have read the above. diff --git a/docs/03-github/04-builder.mdx b/docs/03-github/04-builder.mdx index 50d21c3c..7ae7a339 100644 --- a/docs/03-github/04-builder.mdx +++ b/docs/03-github/04-builder.mdx @@ -688,6 +688,30 @@ that directory. This action must be done before running the game-ci/unity-builde echo "token = \"${{ secrets.NPM_TOKEN }}\"" >> .upmconfig.toml ``` +## Using preprocessor macros + +If needed, Unity preprocessor directives can be set by adding a step to the build. + +```yaml +steps: + - name: Apply csc.rsp (pre-processor symbols) + run: echo -define:MY_SYMBOL >> Assets/csc.rsp +``` + +To avoid warnings about "unapplied changes", add `Assets/csc.rsp` in your `.gitignore` + +Once set, you can then reference these preprocessor directives in code: + +```c +void Start() { +#if MY_SYMBOL + GetComponent().text = "I have a symbol!"; +#else + GetComponent().text = "I do not have a symbol..."; +#endif +} +``` + ## Complete example A complete workflow that builds every available platform could look like this: diff --git a/src/components/pages/home/section/sponsors-section.tsx b/src/components/pages/home/section/sponsors-section.tsx index ceca90bf..1975c404 100644 --- a/src/components/pages/home/section/sponsors-section.tsx +++ b/src/components/pages/home/section/sponsors-section.tsx @@ -1,23 +1,20 @@ -import Link from '@docusaurus/Link'; import React from 'react'; import FadeIntoView from '@site/src/components/molecules/animations/fade-into-view'; import Section from '@site/src/components/pages/home/section/section'; -import CircleCiLogo from '@site/static/assets/images/icons/circleci.svg'; -import { getUrlWithUtmParameters } from '@site/src/core/url'; const SponsorsSection = () => { - const circleCiUrl = getUrlWithUtmParameters('https://circleci.com'); - return ( -
+ // Would be nice if the banner had a dark mode that we could use for `dark:*` +
-
    -
  • - - - -
  • -
+