Skip to content

chore: renamed non scene/script directory to contain ~ so meta files … #478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/aggregate-passport-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const path = require('path');

// Configuration
const PASSPORT_ROOT = './sample/Assets/Scripts/Passport';
const TUTORIALS_DIR = path.join(PASSPORT_ROOT, '_tutorials');
const TUTORIALS_DIR = path.join(PASSPORT_ROOT, '_tutorials~');
const OUTPUT_DIR = './_parsed';
const OUTPUT_FILE = path.join(OUTPUT_DIR, 'passport-features.json');
const FEATURES_JSON_PATH = path.join(PASSPORT_ROOT, 'features.json');
Expand Down
8 changes: 4 additions & 4 deletions .github/scripts/process-passport-tutorials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DOCS_REPO_DIR="${CLONE_DIR:-"./imx-docs"}"

# Root of the Passport features
PASSPORT_ROOT="./sample/Assets/Scripts/Passport"
TUTORIALS_DIR="${PASSPORT_ROOT}/_tutorials"
TUTORIALS_DIR="${PASSPORT_ROOT}/_tutorials~"

echo "Processing Passport tutorials..."

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

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

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish-passport-tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ on:
# - main
- chore/sample-app-tutorial
paths:
- 'sample/Assets/Scripts/Passport/**/tutorial.md'
- 'sample/Assets/Scripts/Passport/**/metadata.json'
- 'sample/Assets/Scripts/Passport/features.json'
- 'sample/Assets/Scripts/Passport/_tutorials/**/*'
- 'sample/Assets/Scripts/Passport/_tutorials~/**/*'

# Allow manual triggering
workflow_dispatch:
Expand Down
8 changes: 0 additions & 8 deletions sample/Assets/Scripts/Passport/_prompts.meta

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Before starting:
- Note all frameworks, libraries, and dependencies used
- IMPORTANT: Focus on the logical connections between features in the group while maintaining focus on each feature's specific implementation details.

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

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

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