Skip to content

Commit 4bc7a3f

Browse files
committed
Fix file path comments
1 parent 83f97c6 commit 4bc7a3f

12 files changed

+14
-15
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// README.md
1+
<!-- README.md -->
22
# Thingylabs Performance Initiative
33

44
![Thingylabs GmbH Logo](https://www.thingylabs.io/logo-with-text.png "Thingylabs GmbH Logo")

add-path-comments.ts add-path.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async function addPathComments(rootDir: string) {
1212
})) {
1313
const filePath = entry.path;
1414
const relPath = relative(resolvedRoot, filePath);
15-
const comment = `// ${relPath}\n`;
15+
const comment = `<!-- ${relPath} -->\n`;
1616

1717
try {
1818
const content = await Deno.readTextFile(filePath);
@@ -23,7 +23,7 @@ async function addPathComments(rootDir: string) {
2323
}
2424

2525
const lines = content.split('\n');
26-
while (lines.length > 0 && (lines[0].trim() === '' || lines[0].trim().startsWith('//'))) {
26+
while (lines.length > 0 && (lines[0].trim() === '' || lines[0].trim().startsWith('<!--'))) {
2727
lines.shift();
2828
}
2929

@@ -33,7 +33,7 @@ async function addPathComments(rootDir: string) {
3333
await Deno.writeTextFile(filePath, newContent);
3434
console.log(`Updated comment in ${relPath}`);
3535
} catch (err) {
36-
const error = err as Error
36+
const error = err as Error;
3737
console.error(`Error processing ${relPath}: ${error.message}`);
3838
}
3939
}
@@ -45,7 +45,7 @@ if (import.meta.main) {
4545
await addPathComments(rootDir);
4646
console.log('Finished adding file path comments');
4747
} catch (err) {
48-
const error = err as Error
48+
const error = err as Error;
4949
console.error('Error:', error.message);
5050
Deno.exit(1);
5151
}

deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"lib": ["deno.ns", "deno.window"]
44
},
55
"tasks": {
6-
"add-path": "deno run --allow-read --allow-write add-path-comments.ts"
6+
"add-path": "deno run --allow-read --allow-write add-path.ts"
77
}
88
}

docs/s1-consent-form.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// docs/s1-consent-form.md
1+
<!-- docs/s1-consent-form.md -->
22
# Consent Form
33

44
## Overview

docs/s1-facilitator-guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// docs/s1-facilitator-guide.md
1+
<!-- docs/s1-facilitator-guide.md -->
22
# Thingylabs Performance Initiative Consent Form
33

44
## Consent and Disclaimer for Thingylabs GmbH Employees

docs/s1-outline.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// docs/s1-outline.md
1+
<!-- docs/s1-outline.md -->
22
# Thingylabs Performance Initiative Study 1 Outline
33

44
## Overview

docs/s1-participant-guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// docs/s1-participant-guide.md
1+
<!-- docs/s1-participant-guide.md -->
22
# Thingylabs Study 1 Weekly Sheet
33

44
## Welcome

docs/s1-protocol.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// docs/s1-protocol.md
1+
<!-- docs/s1-protocol.md -->
22
# Thingylabs Performance Initiative Study 1 Protocol
33

44
## Overview

gdpr-compliance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// gdpr-compliance.md
1+
<!-- gdpr-compliance.md -->
22
# GDPR Compliance
33

44
## Overview

ownership-and-licensing.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ownership-and-licensing.md
21
<!-- ownership-and-licensing.md -->
32
# Ownership and Licensing
43

surveys/s1-daily-tracker.m.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// surveys/s1-daily-tracker.m.md
1+
<!-- surveys/s1-daily-tracker.m.md -->
22
### Monday
33
| Substance | Taken Today? | Custom Dose (e.g., pills, drops) |
44
|----------------------------|---------------|----------------------------------|

surveys/s1-entry-survey.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// surveys/s1-entry-survey.md
1+
<!-- surveys/s1-entry-survey.md -->
22
# Thingylabs Performance Initiative 1-Entry Survey
33

44
## Instructions for Use

0 commit comments

Comments
 (0)