Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 10, 2024
1 parent eb6070c commit 5c15f07
Show file tree
Hide file tree
Showing 118 changed files with 31,270 additions and 4,719 deletions.
2 changes: 1 addition & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ ADD nginx.conf /etc/nginx/nginx.conf

COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]
2 changes: 1 addition & 1 deletion .docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ http {
try_files $uri $uri/ /index.html;
}
}
}
}
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
pull_request:
branches:
- '**'
- "**"

workflow_dispatch:

Expand Down Expand Up @@ -36,10 +36,10 @@ jobs:
with:
repo: open-energy-transition/handbook
token: ${{ github.token }}

- name: update change log mdx
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: bash scripts/sync-changelog.sh
run: bash scripts/sync-changelog.sh

- name: Set up Node.js
uses: actions/setup-node@v3
Expand All @@ -53,7 +53,7 @@ jobs:
run: bash scripts/generate-table-json.sh

- name: Fetch team JSON
run: bash scripts/sync-data.sh
run: bash scripts/sync-data.sh

- name: Build
run: npm run build
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/gcr-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ env:
RUN_REGION: asia-southeast1
SERVICE_NAME: oet-handbook-github


jobs:
build:
name: Build React App
Expand All @@ -23,14 +22,14 @@ jobs:
- name: Set up Node.js v18.12.1
uses: actions/setup-node@v2
with:
node-version: '18.12.1'
node-version: "18.12.1"

- name: Install npm 8.19.2
run: npm install -g [email protected]

- name: Install dependencies
run: npm install

- name: Build Development
run: CI=false npm run build

Expand All @@ -57,9 +56,9 @@ jobs:

- name: Setup GCloud Auth
id: auth
uses: 'google-github-actions/auth@v0'
uses: "google-github-actions/auth@v0"
with:
credentials_json: '${{ secrets.GCR_SA_KEY }}'
credentials_json: "${{ secrets.GCR_SA_KEY }}"

- name: Set up Cloud SDK
uses: google-github-actions/[email protected]
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/setup-python@v3
- name: Install pre-commit
run: |
pip install pre-commit
- name: Run pre-commit on changed files
run: |
BASE_REF=$(git merge-base origin/main HEAD)
pre-commit run --from-ref $BASE_REF --to-ref HEAD
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/setup-python@v3
- name: Install pre-commit
run: |
pip install pre-commit
- name: Run pre-commit on changed files
run: |
BASE_REF=$(git merge-base origin/main HEAD)
pre-commit run --from-ref $BASE_REF --to-ref HEAD
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ repos:
hooks:
- id: prettier
args: [--write]
additional_dependencies: ['[email protected]']
additional_dependencies: ["[email protected]"]
files: \.(js|jsx|json|css|md|mdx|yaml|yml|html)$


9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Welcome to the Open Energy Transition Handbook repository!

This repository serves as a centralized hub for managing and tracking policies company-wide for Open Energy Transition.
This repository serves as a centralized hub for managing and tracking policies company-wide for Open Energy Transition.

## Getting Started

Expand All @@ -15,34 +15,39 @@ The Open Energy Transition handbook is built on Docusaurus.
To get started with development, follow these steps:

Install dependencies:

```bash
npm install
npm install
```

### Generating handbook Structure JSON

To generate the JSON for the handbook structure, run:

```bash
bash scripts/generate-table-json.sh
```

### Data Synchronization

To fetch dependencies, execute:

```bash
bash scripts/sync-data.sh
```

### Development

To run the development server, use the following command:

```bash
npm start
```

### Building

To build the project, run:

```bash
npm run build
```
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
};
7 changes: 6 additions & 1 deletion docs/Company/AboutOET.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ sidebar_label: "About OET"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# About OET

Expand Down
8 changes: 7 additions & 1 deletion docs/Company/CEOReadme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "CEO Readme"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# CEO Readme

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
8 changes: 7 additions & 1 deletion docs/Company/Communication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "Communication"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Communication

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
8 changes: 7 additions & 1 deletion docs/Company/CompanyTemplates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "Company templates"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Company templates

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
8 changes: 7 additions & 1 deletion docs/Company/Culture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "Culture"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Culture

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
8 changes: 7 additions & 1 deletion docs/Company/EGroupWeekly.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "E-Group Weekly"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# E-Group Weekly

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
8 changes: 7 additions & 1 deletion docs/Company/EnvironmentalSocialGovernance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "Environmental, social and governance"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Environmental, social and governance

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
8 changes: 7 additions & 1 deletion docs/Company/GroupConversations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "Group conversations"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Group conversations

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
8 changes: 7 additions & 1 deletion docs/Company/Mission.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "Mission"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Mission

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
8 changes: 7 additions & 1 deletion docs/Company/Strategy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "Strategy"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Strategy

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
9 changes: 7 additions & 2 deletions docs/Company/Team.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";
import GlobeComponent from "@site/src/components/TeamGlobe";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Team

Expand All @@ -21,4 +26,4 @@ Open Energy Transition is a global company where different cultures and points o

## Team information

For further information about our collaborators, please refer to the [team page](https://openenergytransition.org/about-us.html#team) on the Open Energy Transition website.
For further information about our collaborators, please refer to the [team page](https://openenergytransition.org/about-us.html#team) on the Open Energy Transition website.
8 changes: 7 additions & 1 deletion docs/Company/Values.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "Values"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Values

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
8 changes: 7 additions & 1 deletion docs/Company/Vision.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ sidebar_label: "Vision"
import MaintainerTag from "@site/src/components/MaintainerTag";
import ControlledDocBanner from "@site/src/components/ControlledDocBanner";

<MaintainerTag maintainerEmails={["[email protected]", "[email protected]"]} />
<MaintainerTag
maintainerEmails={[
"[email protected]",
"[email protected]",
]}
/>

# Vision

this should be same as sidebar_label and folder name

<ControlledDocBanner />
Expand Down
Loading

0 comments on commit 5c15f07

Please sign in to comment.