Skip to content

Commit 669098f

Browse files
Merge branch 'main' into introduction
2 parents ace2724 + b3d6aba commit 669098f

File tree

5 files changed

+44
-3
lines changed

5 files changed

+44
-3
lines changed

.github/configs/auto-assign.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ addAssignees: false
88
reviewers:
99
- PoojaB26
1010
- leighajarett
11+
- johnbhiggins7
12+
- pinkeshmars
1113

1214
# A number of reviewers added to the pull request
1315
# Set 0 to add all the reviewers (default: 0)

.github/pull_request_template.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
### Description
3+
Provide a brief overview of what this documentation update is about. Explain what sections or topics are being added or revised.
4+
5+
Linear ticket and [magic word](https://linear.app/docs/github#link-prs) Fixes DEVR-XXX
6+
7+
## Type of change
8+
- [ ] Typo fix
9+
- [ ] New feature
10+
- [ ] Removed outdated references
11+
12+
13+

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",
7-
"start": "node scripts/snippet-inclusion.js && docusaurus start",
8-
"build": "node scripts/snippet-inclusion.js && docusaurus build",
7+
"start": "node scripts/convertImages.js && docusaurus start",
8+
"build": "node scripts/convertImages.js && docusaurus build",
99
"swizzle": "docusaurus swizzle",
1010
"deploy": "docusaurus deploy",
1111
"clear": "docusaurus clear",
@@ -46,5 +46,5 @@
4646
"engines": {
4747
"node": ">=18.0"
4848
},
49-
"description": "Docusaurus example project (classic-typescript template)"
49+
"description": "FlutterFlow Documentation"
5050
}

scripts/convertImages.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
const glob = require('glob');
4+
5+
const markdownImageRegex = /!\[(.*?)\]\((.*?)\)/g;
6+
7+
function convertImageSyntax(filePath) {
8+
let content = fs.readFileSync(filePath, 'utf8');
9+
content = content.replace(markdownImageRegex, (match, alt, src) => {
10+
return `<img src="${src}" alt="${alt}" />`; // Customize this string as needed
11+
});
12+
fs.writeFileSync(filePath, content, 'utf8');
13+
}
14+
15+
glob("docs/**/*.md", (err, files) => {
16+
if (err) throw err;
17+
files.forEach(file => {
18+
convertImageSyntax(file);
19+
});
20+
console.log('Conversion complete.');
21+
});

src/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,8 @@
4343
width: 100%;
4444
height: 100%;
4545
}
46+
47+
.small-image {
48+
width: 400px;
49+
height: auto;
50+
}

0 commit comments

Comments
 (0)