Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs205
workbook
Commits
9901b2b2
Commit
9901b2b2
authored
8 years ago
by
Wade Fagen-Ulmschneider (waf)
Browse files
Options
Downloads
Patches
Plain Diff
- Added "Personal" project type as "per_"
parent
4997e22d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workbook_utilities.py
+6
-1
6 additions, 1 deletion
workbook_utilities.py
with
6 additions
and
1 deletion
workbook_utilities.py
+
6
−
1
View file @
9901b2b2
...
...
@@ -75,6 +75,7 @@ def construct_navigation():
navigation
[
"
experiences
"
]
=
[]
navigation
[
"
projects
"
]
=
[]
navigation
[
"
demos
"
]
=
[]
navigation
[
"
personal
"
]
=
[]
# Scan all of the directories
for
index
,
rpath
in
enumerate
(
os
.
listdir
(
basecwd
)):
...
...
@@ -84,12 +85,14 @@ def construct_navigation():
project_data
[
"
dir
"
]
=
rpath
# Attempt to infer the type of project:
if
rpath
.
startswith
(
"
proj
ect
_
"
):
if
rpath
.
startswith
(
"
proj_
"
):
project_data
[
"
type
"
]
=
"
Project
"
elif
rpath
.
startswith
(
"
exp_
"
):
project_data
[
"
type
"
]
=
"
Experience
"
elif
rpath
.
startswith
(
"
demo_
"
):
project_data
[
"
type
"
]
=
"
Demo
"
elif
rpath
.
startswith
(
"
per_
"
):
project_data
[
"
type
"
]
=
"
Personal
"
else
:
project_data
[
"
type
"
]
=
"
Unknown
"
...
...
@@ -116,6 +119,8 @@ def construct_navigation():
navigation
[
"
projects
"
].
append
(
project_data
)
elif
project_data
[
"
type
"
]
==
"
Demo
"
:
navigation
[
"
demos
"
].
append
(
project_data
)
elif
project_data
[
"
type
"
]
==
"
Personal
"
:
navigation
[
"
personal
"
].
append
(
project_data
)
else
:
logger
.
warning
(
"
%s:Unknown project type:
"
+
project_data
[
"
type
"
]
+
"
. Not added to navigation.
"
,
rpath
)
continue
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment