Skip to content

Commit 2061319

Browse files
committed
chore: remove netlify from codebase
1 parent 47f6eb8 commit 2061319

File tree

6 files changed

+2
-121
lines changed

6 files changed

+2
-121
lines changed

.github/workflows/deploy-docs-to-netlify.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/manual-deploy-docs.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,6 @@ jobs:
4343
run: git tag -a v$(./.github/workflows/calculateVersion.sh) -m v$(./.github/workflows/calculateVersion.sh)
4444
- name: Push tags
4545
run: git push origin v$(./.github/workflows/calculateVersion.sh)
46-
deploy-docs:
47-
needs: release
48-
if: "startsWith(github.event.head_commit.message, 'chore(release)')"
49-
runs-on: ubuntu-latest
50-
name: Deploy docs to Netlify
51-
steps:
52-
- uses: actions/checkout@v4
53-
with:
54-
fetch-depth: 0
55-
- name: Install Node 22
56-
uses: actions/setup-node@v4
57-
with:
58-
node-version: '22'
59-
- name: Install netlify-cli
60-
run: npm install --save-dev [email protected]
61-
- name: Install packages.
62-
run: npm ci
63-
- name: Set up project.
64-
run: npm run bootstrap
65-
- name: Build docs-app.
66-
run: npm run build:docs
67-
- name: Copy redirects config file to the __build__ directory.
68-
run: cp ./packages/__docs__/_redirects ./packages/__docs__/__build__
69-
- name: Deploy built docs-app to Netlify.
70-
env:
71-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
72-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
73-
run: npx netlify deploy --prod --dir ./packages/__docs__/__build__
7446
ssr-regression:
7547
needs: release
7648
runs-on: ubuntu-latest

docs/contributor-docs/release.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -168,28 +168,13 @@ git push origin v11_maintenance
168168

169169
Update the fields in the file `./packages/__docs__/versions.json` with the latest version and the maintenance branch map. Remove old unsupported versions if they are no longer needed and you don't want them to appear in the docs page version selector.
170170

171-
##### 3. Add redirect for the legacy docs
172-
173-
Add a new line to the file `./packages/__docs__/_redirects` to redirect the legacy docs. If the current major version is 11, then:
174-
175-
```text
176-
---
177-
type: code
178-
---
179-
/v11/* https://v11--preview-instui.netlify.app/:splat 200
180-
```
181-
182-
##### 4. Update version references in the docs app
171+
##### 3. Update version references in the docs app
183172

184173
1. In `docs/getting-started/usage.md` update the version in the code snippet for `package.json`
185174
2. In `packages/__docs__/src/Hero/index.tsx` update the url and title of the Upgrade Guide button
186175
3. In `packages/__docs__/src/Hero/index.tsx` update the url and title of the Upgrade Guide link in the "What's new?" section
187176
4. In `packages/__docs__/src/CodeSandboxButton/index.tsx` update the `@instructure/` dependencies to the latest version
188177

189-
##### 5. Do a release like it was a minor update
178+
##### 4. Do a release like it was a minor update
190179

191180
Follow the same process as it's described above. The `npm run bump` command should automatically recognise that there were a breaking commit and it should be a major version change.
192-
193-
##### 6. Deploy the docs for the maintenance branch
194-
195-
Make sure that previous versions of the docs are accessible. If not, deploy them on Netlify using the `Docs deploy to Netlify` GitHub action.

packages/__docs__/_redirects

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/__docs__/src/Hero/index.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,6 @@ class Hero extends Component<HeroProps> {
275275
</Link>
276276
</List.Item>
277277
</List>
278-
<Heading as="h3" level="h2" margin="none none medium">
279-
Acknowledgements
280-
</Heading>
281-
<View as="p" margin="none none small">
282-
<a href="https://www.netlify.com">
283-
<img
284-
src="https://www.netlify.com/img/global/badges/netlify-dark.svg"
285-
alt="Deploys by Netlify"
286-
/>
287-
</a>
288-
</View>
289278
</View>
290279
)
291280

0 commit comments

Comments
 (0)