Skip to content

Commit

Permalink
🐛 trying to fix ghpages build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
slooi committed Oct 2, 2024
1 parent a837053 commit 4d29f31
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 4 deletions.
24 changes: 24 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import os


def print_directory_structure(startpath, max_depth=None, exclude_dirs=None):
# Default list of directories to exclude
if exclude_dirs is None:
exclude_dirs = ['node_modules', '.git', '.mypy_cache']

for root, dirs, files in os.walk(startpath):
# Filter out the directories in the exclude list
dirs[:] = [d for d in dirs if d not in exclude_dirs]

level = root.replace(startpath, '').count(os.sep)
if max_depth is not None and level > max_depth:
continue
indent = '│ ' * level
print(f'{indent}├── {os.path.basename(root)}/')

for f in files:
print(f'{indent}│ ├── {f}')

# Usage
# You can extend the exclude list by passing additional directories
print_directory_structure('.', max_depth=2, exclude_dirs=['node_modules', '.git', '.mypy_cache', '__pycache__'])
File renamed without changes.
2 changes: 1 addition & 1 deletion src/model/modelL.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Model } from "./Model";
import { Model } from "./Model2";

export const model: Model = {
vertexData: {
Expand Down
2 changes: 1 addition & 1 deletion src/model/modelPlane.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import f from "../assets/tex.png"
import { Model } from "./Model"
import { Model } from "./Model2"

export const model: Model = {
vertexData: {
Expand Down
2 changes: 1 addition & 1 deletion src/webgl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { m4 } from "./m4"
import { Model } from "./model/Model"
import { Model } from "./model/Model2"
import { model } from "./model/modelPlane"

export function createWebglRenderer(canvas: HTMLCanvasElement) {
Expand Down
8 changes: 7 additions & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
"strict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"baseUrl": ".",
"paths": {
"*": [
"src/*"
]
}
},
"include": [
"src"
Expand Down

0 comments on commit 4d29f31

Please sign in to comment.