diff --git a/.github/workflows/add-depr-ticket-to-depr-board.yml b/.github/workflows/add-depr-ticket-to-depr-board.yml index 73ca4c5c..250e394a 100644 --- a/.github/workflows/add-depr-ticket-to-depr-board.yml +++ b/.github/workflows/add-depr-ticket-to-depr-board.yml @@ -16,4 +16,4 @@ jobs: secrets: GITHUB_APP_ID: ${{ secrets.GRAPHQL_AUTH_APP_ID }} GITHUB_APP_PRIVATE_KEY: ${{ secrets.GRAPHQL_AUTH_APP_PEM }} - SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }} \ No newline at end of file + SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }} diff --git a/.github/workflows/add-remove-label-on-comment.yml b/.github/workflows/add-remove-label-on-comment.yml new file mode 100644 index 00000000..0f369db7 --- /dev/null +++ b/.github/workflows/add-remove-label-on-comment.yml @@ -0,0 +1,20 @@ +# This workflow runs when a comment is made on the ticket +# If the comment starts with "label: " it tries to apply +# the label indicated in rest of comment. +# If the comment starts with "remove label: ", it tries +# to remove the indicated label. +# Note: Labels are allowed to have spaces and this script does +# not parse spaces (as often a space is legitimate), so the command +# "label: really long lots of words label" will apply the +# label "really long lots of words label" + +name: Allows for the adding and removing of labels via comment + +on: + issue_comment: + types: [created] + +jobs: + add_remove_labels: + uses: openedx/.github/.github/workflows/add-remove-label-on-comment.yml@master + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6dd04d45..2d81c020 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,17 +9,17 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 16 + node-version-file: '.nvmrc' - name: Install dependencies run: npm ci - name: Release env: - GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_NPM_TOKEN }} run: npx semantic-release diff --git a/.github/workflows/self-assign-issue.yml b/.github/workflows/self-assign-issue.yml new file mode 100644 index 00000000..37522fd5 --- /dev/null +++ b/.github/workflows/self-assign-issue.yml @@ -0,0 +1,12 @@ +# This workflow runs when a comment is made on the ticket +# If the comment starts with "assign me" it assigns the author to the +# ticket (case insensitive) + +name: Assign comment author to ticket if they say "assign me" +on: + issue_comment: + types: [created] + +jobs: + self_assign_by_comment: + uses: openedx/.github/.github/workflows/self-assign-issue.yml@master diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..7950a445 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18.17.0 diff --git a/README.md b/README.md new file mode 100644 index 00000000..dcdb77c1 --- /dev/null +++ b/README.md @@ -0,0 +1,64 @@ +# Open edX Brand Package Interface + +This project contains the default branding assets and style used in Open edX +applications. It is published on npm as `@openedx/brand-openedx`. + +The file structure serves as an interface to be implemented for custom +branding and theming of Open edX. + +## How to use this package + +Applications in Open edX are configured by default to include this +package for branding assets and theming visual style. + +To use a custom brand and theme\... + +1. Fork or copy this project. Ensure that it lives in a location + accessible to Open edX applications during asset builds. This may be + a published git repo, npm, or local folder depending on your + situation. +2. Replace the assets in this project with your own logos or SASS + theme. Match the filenames exactly. Open edX applications refer to + these files by their filepath. Refer to the brand for edx.org at + for an example. +3. Configure your Open edX instance to consume your custom brand + package. Refer to this documentation on configuring the platform: + https://docs.openedx.org/projects/openedx-proposals/en/latest/architectural-decisions/oep-0048-brand-customization.html + \[TODO: Add a link to documentation on configuring in Open edX MFE + pipelines when it exists\] +4. Rebuild the assets and microfrontends in your Open edX instance to + see the new brand reflected. \[TODO: Add link to relevant + documentation when it is completed\]. + +## Files this package must make available + +`/logo.svg` + +![logo](/logo.svg) + +`/logo-trademark.svg` A variant of the logo with a trademark ® or ™. +Note: This file must be present. If you don\'t have a trademark variant +of your logo, copy your regular logo and use that. + +![logo](/logo-trademark.svg) + +`/logo-white.svg` A variant of the logo for use on dark backgrounds + +![logo](/logo-white.svg) + +`/favicon.ico` A site favicon + +![favicon](/favicon.ico) + +`/paragon/images/card-imagecap-fallback.png` A variant of the default +fallback image for [Card.ImageCap] component. + +![card-imagecap-fallback](/paragon/images/card-imagecap-fallback.png) + +`/paragon/fonts.scss`, `/paragon/_variables.scss`, +`/paragon/_overrides.scss` A SASS theme for +[\@edx/paragon](https://github.com/openedx/paragon). Theming +documentation in Paragon is coming soon. In the meantime, you can start +a theme by the contents of [\_variables.scss (after line +7)](https://github.com/openedx/paragon/blob/master/scss/core/_variables.scss#L7-L1046) +file from the Paragon repository into this file. diff --git a/README.rst b/README.rst deleted file mode 100644 index c0b270d5..00000000 --- a/README.rst +++ /dev/null @@ -1,58 +0,0 @@ -Open edX Brand Package Interface -================================ - -This project contains the default branding assets and style used in Open edX applications. It is published on npm as `@edx/brand-openedx`. - -The file structure serves as an interface to be implemented for custom branding and theming of Open edX. - ------------------------ -How to use this package ------------------------ - -Applications in Open edX are configured by default to include this package for branding assets and theming visual style. - -To use a custom brand and theme... - -1. Fork or copy this project. Ensure that it lives in a location accessible to Open edX applications during asset builds. This may be a published git repo, npm, or local folder depending on your situation. - -2. Replace the assets in this project with your own logos or SASS theme. Match the filenames exactly. Open edX applications refer to these files by their filepath. Refer to the brand for edx.org at https://github.com/edx/brand for an example. - -3. Configure your Open edX instance to consume your custom brand package. Refer to this documentation on configuring the platform: https://open-edx-proposals.readthedocs.io/en/latest/oep-0048-brand-customization.html [TODO: Add a link to documentation on configuring in Open edX MFE pipelines when it exists] - -4. Rebuild the assets and microfrontends in your Open edX instance to see the new brand reflected. [TODO: Add link to relevant documentation when it is completed]. - --------------------------------------- -Files this package must make available --------------------------------------- - -``/logo.svg`` - -.. image:: /logo.svg - :alt: logo - :width: 128px - -``/logo-trademark.svg`` A variant of the logo with a trademark ® or ™. Note: This file must be present. If you don't have a trademark variant of your logo, copy your regular logo and use that. - -.. image:: /logo-trademark.svg - :alt: logo - :width: 128px - -``/logo-white.svg`` A variant of the logo for use on dark backgrounds - -.. image:: /logo-white.svg - :alt: logo - :width: 128px - -``/favicon.ico`` A site favicon - -.. image:: /favicon.ico - :alt: favicon - :width: 32px - -``/paragon/images/card-imagecap-fallback.png`` A variant of the default fallback image for `Card.ImageCap` component. - -.. image:: /paragon/images/card-imagecap-fallback.png - :alt: card-imagecap-fallback - :width: 380px - -``/paragon/fonts.scss``, ``/paragon/_variables.scss``, ``/paragon/_overrides.scss`` A SASS theme for `@edx/paragon `_. Theming documentation in Paragon is coming soon. In the meantime, you can start a theme by the contents of `_variables.scss (after line 7) `_ file from the Paragon repository into this file. diff --git a/package.json b/package.json index f7480b6a..59f073bf 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "@openedx/brand-openedx", - "version": "1.0.0-gym.palm.4", - "description": "The default branding and SASS theme package containing for Open edX applications. This package is designed to be copied and customized.", + "version": "1.0.0-gym.quince", + "description": "Gymnasium-specific branding package for stock MFEs", "repository": { "type": "git", "url": "git+https://github.com/gymnasium/brand-openedx.git" }, - "author": "edX", + "author": "Open edX Community", "license": "GPL-3.0-or-later", "bugs": { "url": "https://github.com/openedx/brand-openedx/issues"