Skip to content

Commit

Permalink
Merge pull request #4916 from wso2/revert-4915-turn-off-docs-12-5
Browse files Browse the repository at this point in the history
Revert "Test Feature enable/disable"
  • Loading branch information
himeshsiriwardana authored Dec 5, 2024
2 parents 34e63c4 + fa6c05f commit 4ce965b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions en/asgardeo/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,5 @@
"enabled": false,
"page": [
]
},

"asgardeo_events": {
"enabled": false,
"page": [
"guides/monitoring/asgardeo-events.md"
]
}


}
2 changes: 1 addition & 1 deletion en/asgardeo/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def parse_json(file_path):
files_to_remove = parse_json(os.path.join(os.getcwd(), 'features.json'))

def on_files(files, config):
if os.getenv("ENABLE_HOOKS"):
if os.getenv("ENABLE_HOOKS") == "true":
for file in list(files):
if file.src_uri in files_to_remove['page']:
files.remove(file)
Expand Down

0 comments on commit 4ce965b

Please sign in to comment.