Skip to content

Commit 27e4000

Browse files
Merge pull request #478 from immutable/chore/rename-tutorial-dir
chore: renamed non scene/script directory to contain ~ so meta files …
2 parents 833964a + a6e9995 commit 27e4000

File tree

20 files changed

+10
-16
lines changed

20 files changed

+10
-16
lines changed

.github/scripts/aggregate-passport-metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const path = require('path');
77

88
// Configuration
99
const PASSPORT_ROOT = './sample/Assets/Scripts/Passport';
10-
const TUTORIALS_DIR = path.join(PASSPORT_ROOT, '_tutorials');
10+
const TUTORIALS_DIR = path.join(PASSPORT_ROOT, '_tutorials~');
1111
const OUTPUT_DIR = './_parsed';
1212
const OUTPUT_FILE = path.join(OUTPUT_DIR, 'passport-features.json');
1313
const FEATURES_JSON_PATH = path.join(PASSPORT_ROOT, 'features.json');

.github/scripts/process-passport-tutorials.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DOCS_REPO_DIR="${CLONE_DIR:-"./imx-docs"}"
88

99
# Root of the Passport features
1010
PASSPORT_ROOT="./sample/Assets/Scripts/Passport"
11-
TUTORIALS_DIR="${PASSPORT_ROOT}/_tutorials"
11+
TUTORIALS_DIR="${PASSPORT_ROOT}/_tutorials~"
1212

1313
echo "Processing Passport tutorials..."
1414

@@ -23,11 +23,11 @@ fi
2323
DOCS_TUTORIALS_DIR="${DOCS_REPO_DIR}/docs/main/example/zkEVM/unity/passport-examples/_tutorials"
2424
mkdir -p "${DOCS_TUTORIALS_DIR}"
2525

26-
# Check if _tutorials directory exists
26+
# Check if _tutorials~ directory exists
2727
if [ ! -d "${TUTORIALS_DIR}" ]; then
28-
echo "Warning: _tutorials directory not found at ${TUTORIALS_DIR}"
28+
echo "Warning: _tutorials~ directory not found at ${TUTORIALS_DIR}"
2929
else
30-
# Process each feature group directory in _tutorials
30+
# Process each feature group directory in _tutorials~
3131
find "${TUTORIALS_DIR}" -mindepth 1 -maxdepth 1 -type d -print0 | while IFS= read -r -d '' GROUP_DIR; do
3232
echo "Processing feature group: ${GROUP_DIR}"
3333

.github/workflows/publish-passport-tutorials.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ on:
77
# - main
88
- chore/sample-app-tutorial
99
paths:
10+
- 'sample/Assets/Scripts/Passport/**/tutorial.md'
11+
- 'sample/Assets/Scripts/Passport/**/metadata.json'
1012
- 'sample/Assets/Scripts/Passport/features.json'
11-
- 'sample/Assets/Scripts/Passport/_tutorials/**/*'
13+
- 'sample/Assets/Scripts/Passport/_tutorials~/**/*'
1214

1315
# Allow manual triggering
1416
workflow_dispatch:

sample/Assets/Scripts/Passport/_prompts.meta

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

sample/Assets/Scripts/Passport/_prompts/tutorial-generation-prompt.txt renamed to sample/Assets/Scripts/Passport/_prompts~/tutorial-generation-prompt.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Before starting:
5151
- Note all frameworks, libraries, and dependencies used
5252
- IMPORTANT: Focus on the logical connections between features in the group while maintaining focus on each feature's specific implementation details.
5353

54-
### 2. Create tutorial.md in sample/Assets/Scripts/Passport/_tutorials/{FEATURE_GROUP}/
54+
### 2. Create tutorial.md in sample/Assets/Scripts/Passport/_tutorials~/{FEATURE_GROUP}/
5555
Create a tutorial.md file for the feature group with the following structure:
5656

5757
#### Group Introduction
@@ -118,7 +118,7 @@ Note: For single-feature cases, rename this section to "Running the Feature Exam
118118
- Use bulleted lists for features and steps
119119
- Include clear transitions between different features in the group
120120

121-
### 3. Create metadata.json in sample/Assets/Scripts/Passport/_tutorials/{FEATURE_GROUP}/
121+
### 3. Create metadata.json in sample/Assets/Scripts/Passport/_tutorials~/{FEATURE_GROUP}/
122122
IMPORTANT: UI LIBRARY IS NOT A FEATURE OR TECH STACK. IN GENERAL, NEVER INCLUDE UI LIBRARY IN THE METADATA.JSON FILE.
123123
Create a metadata.json file for the feature group with the following structure:
124124
{

0 commit comments

Comments
 (0)