Skip to content

Commit ce7638f

Browse files
Merge pull request #60 from kamranahmedse/master
Create a new pull request by comparing changes across two branches
2 parents 7a51602 + c1a53cf commit ce7638f

File tree

386 files changed

+3012
-573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

386 files changed

+3012
-573
lines changed

.github/workflows/aws-costs.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Sends Daily AWS Costs to Slack
2+
on:
3+
# Allow manual Run
4+
workflow_dispatch:
5+
# Run at 7:00 UTC every day
6+
schedule:
7+
- cron: "0 7 * * *"
8+
jobs:
9+
aws_costs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Get Costs
13+
env:
14+
AWS_KEY: ${{ secrets.COST_AWS_ACCESS_KEY }}
15+
AWS_SECRET: ${{ secrets.COST_AWS_SECRET_KEY }}
16+
AWS_REGION: ${{ secrets.COST_AWS_REGION }}
17+
SLACK_CHANNEL: ${{ secrets.SLACK_COST_CHANNEL }}
18+
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
19+
run: |
20+
npm install -g aws-cost-cli
21+
aws-cost -k $AWS_KEY -s $AWS_SECRET -r $AWS_REGION -S $SLACK_TOKEN -C $SLACK_CHANNEL

astro.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
site: 'https://roadmap.sh',
1111
markdown: {
1212
shikiConfig: {
13-
theme: 'dracula'
13+
theme: 'dracula',
1414
},
1515
rehypePlugins: [
1616
[
@@ -21,6 +21,9 @@ export default defineConfig({
2121
],
2222
],
2323
},
24+
build: {
25+
format: 'file',
26+
},
2427
integrations: [
2528
tailwind({
2629
config: {

bin/compress-jsons.cjs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ const fs = require('node:fs');
22
const path = require('node:path');
33

44
const jsonsDir = path.join(process.cwd(), 'public/jsons');
5-
const jsonFiles = fs.readdirSync(jsonsDir);
5+
const childJsonDirs = fs.readdirSync(jsonsDir);
66

7-
jsonFiles.forEach((jsonFileName) => {
8-
console.log(`Compressing ${jsonFileName}...`);
7+
childJsonDirs.forEach((childJsonDir) => {
8+
const fullChildJsonDirPath = path.join(jsonsDir, childJsonDir);
9+
const jsonFiles = fs.readdirSync(fullChildJsonDirPath);
910

10-
const jsonFilePath = path.join(jsonsDir, jsonFileName);
11-
const json = require(jsonFilePath);
11+
jsonFiles.forEach((jsonFileName) => {
12+
console.log(`Compressing ${jsonFileName}...`);
1213

13-
fs.writeFileSync(jsonFilePath, JSON.stringify(json));
14+
const jsonFilePath = path.join(fullChildJsonDirPath, jsonFileName);
15+
const json = require(jsonFilePath);
16+
17+
fs.writeFileSync(jsonFilePath, JSON.stringify(json));
18+
});
1419
});

bin/roadmap-content.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function prepareDirTree(control, dirTree, dirSortOrders) {
8282
return { dirTree, dirSortOrders };
8383
}
8484

85-
const roadmap = require(path.join(__dirname, `../public/jsons/${roadmapId}`));
85+
const roadmap = require(path.join(__dirname, `../public/jsons/roadmaps/${roadmapId}`));
8686
const controls = roadmap.mockup.controls.control;
8787

8888
// Prepare the dir tree that we will be creating and also calculate the sort orders

contributing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
First of all thank you for considering to contribute. Please look at the details below:
44

55
- [Contribution](#contribution)
6-
- [New Roadmaps](#new-roadmaps)
7-
- [Existing Roadmaps](#existing-roadmaps)
8-
- [Adding Content](#adding-content)
9-
- [Guidelines](#guidelines)
6+
- [New Roadmaps](#new-roadmaps)
7+
- [Existing Roadmaps](#existing-roadmaps)
8+
- [Adding Content](#adding-content)
9+
- [Guidelines](#guidelines)
1010

1111
## New Roadmaps
1212

@@ -23,7 +23,7 @@ For the existing roadmaps, please follow the details listed for the nature of co
2323

2424
## Adding Content
2525

26-
Find [the content directory inside the relevant roadmap](https://github.com/kamranahmedse/roadmap-astro/tree/master/src/roadmaps). Please keep the following guidelines in mind when submitting content:
26+
Find [the content directory inside the relevant roadmap](https://github.com/kamranahmedse/developer-roadmap/tree/master/src/roadmaps). Please keep the following guidelines in mind when submitting content:
2727

2828
- Content must be in English.
2929
- Put a brief description about the topic on top of the file and the a list of links below with each link having title of the URL.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@astrojs/sitemap": "^1.0.0",
2121
"@astrojs/tailwind": "^2.1.3",
2222
"astro": "^1.9.2",
23-
"astro-compress": "^1.1.27",
23+
"astro-compress": "^1.1.28",
2424
"node-html-parser": "^6.1.4",
2525
"npm-check-updates": "^16.6.2",
2626
"rehype-external-links": "^2.0.1",
@@ -30,8 +30,9 @@
3030
"devDependencies": {
3131
"@playwright/test": "^1.29.2",
3232
"@tailwindcss/typography": "^0.5.9",
33-
"gh-pages": "^4.0.0",
33+
"gh-pages": "^5.0.0",
3434
"json-to-pretty-yaml": "^1.2.2",
35+
"markdown-it": "^13.0.1",
3536
"prettier": "^2.8.3",
3637
"prettier-plugin-astro": "^0.7.2"
3738
}

pnpm-lock.yaml

Lines changed: 47 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/jsons/checklists/frontend-performance.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)