-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor, improve organization and fix edit_this_page
- Loading branch information
Showing
17 changed files
with
300 additions
and
602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
ADMIN_NAME = "admin" | ||
USER_NAME = "user" | ||
|
||
DISPLAY_NAMES = { | ||
"guides": "How-to Guides", | ||
"learn": "Learn More", | ||
"tutorials": "Tutorials", | ||
"reference": "Reference", | ||
} | ||
GUIDES = DISPLAY_NAMES["guides"] | ||
LEARN = DISPLAY_NAMES["learn"] | ||
TUTORIALS = DISPLAY_NAMES["tutorials"] | ||
|
||
|
||
class Names: | ||
"""Display Names""" | ||
|
||
# content types | ||
GUIDES = "How-to Guides" | ||
LEARN = "Learn More" | ||
TUTORIALS = "Tutorials" | ||
REFERENCE = "Reference" | ||
|
||
# repo-types | ||
OTHER = "Extra" | ||
CORE = "Pulpcore" | ||
CONTENT = "Plugins" | ||
|
||
# personas | ||
USER = "User" | ||
ADMIN = "Admin" | ||
DEV = "Dev" | ||
|
||
# other | ||
PULPCORE_TUTORIAL = "Getting Started" | ||
|
||
@staticmethod | ||
def get(name: str): | ||
return getattr(Names, name.upper()) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.