File tree 4 files changed +8
-7
lines changed
4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 3
3
src /proj
4
4
5
5
# The command to start the viewer of the custom projects.
6
- # You can use cmds/set-up-custom-projects-dir to create this script (as a symlink) .
6
+ # You can use cmds/set-up-custom-projects-dir to create this script.
7
7
cmds /projects-viewer
8
8
9
9
.idea
Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ if [ ! -f "src/$1/projects-viewer" ]; then
16
16
sed "s/\bsrc\/viewer\/viewer.ts\b/src\/$1\/viewer.ts/" cmds/demos-viewer > src/$1/projects-viewer
17
17
fi
18
18
chmod a+x src/$1/projects-viewer
19
- # Creates cmds/projects-viewer as a symlink to your projects-viewer.
19
+ # Create cmds/projects-viewer calling your projects-viewer.
20
20
# It will be detected and ran by cmds/viewer.
21
- ln -sf ../src/$1/projects-viewer cmds
21
+ rm -f cmds/projects-viewer
22
+ echo "src/$1/projects-viewer" > cmds/projects-viewer
23
+ chmod a+x cmds/projects-viewer
22
24
23
25
echo "Custom projects directory set up in src/$1"
Original file line number Diff line number Diff line change 2
2
# is git-ignored which allows to launch the viewer for user projects instead of demo projects,
3
3
# without modifying this repository.
4
4
5
-
6
5
if [ -f "cmds/projects-viewer" ]; then
7
6
echo "Running projects-viewer:"
8
7
"cmds/projects-viewer"
Original file line number Diff line number Diff line change @@ -128,14 +128,14 @@ There are two main ways to start developing your own projects:
128
128
- Create _ src/my_projects_ directory (unless exists).
129
129
- Create _ src/my_projects/viewer.ts_ file (unless exists) as a copy of
130
130
[ _ src/viewer/viewer.ts_ ] ( ../src/viewer/viewer.ts ) .
131
- - Create _ src/my_projects/projects-viewer_ bash script (unless exists) which
131
+ - Create _ src/my_projects/projects-viewer_ shell script (unless exists) which
132
132
runs the Viewer with the previously created copy of _ viewer.ts_ as the entry
133
133
point.
134
- - Create _ cmds/projects-viewer_ file as a symlink to the previously created
134
+ - Create _ cmds/projects-viewer_ shell script calling the previously created
135
135
_ projects-viewer_ . This will cause the [ _ cmds/viewer_ ] ( ../cmds/viewer ) to
136
136
run this file instead of [ _ cmds/demos-viewer_ ] ( ../cmds/demos-viewer ) .
137
137
- If the Docker container is running, stop it, as it will need to be recreated
138
- after the change of the main script.
138
+ after the change of the script.
139
139
- Add your projects to _ src/my_projects/viewer.ts_ .
140
140
- [ Start the Viewer] ( #starting-the-viewer ) . Your projects will be shown along
141
141
with the demo projects (unless you delete them from
You can’t perform that action at this time.
0 commit comments