Skip to content

Commit

Permalink
replace < an > with _ in file names to fix windows file name issues
Browse files Browse the repository at this point in the history
  • Loading branch information
FarzadHayat committed Apr 9, 2024
1 parent 521b75a commit 8cf59c0
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions -scripts/new-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ TEMPLATE_DIR="./-new-material-templates/plugin-documentation-templates/ROOT"
# Template files generated by the script
plugin_template="$TEMPLATE_DIR/pages/pluginpage.adoc"
# demos
demo_html_template="$TEMPLATE_DIR/examples/live-demos/<plugincode>/index.html"
demo_js_template="$TEMPLATE_DIR/examples/live-demos/<plugincode>/index.js"
demo_html_template="$TEMPLATE_DIR/examples/live-demos/_plugincode_/index.html"
demo_js_template="$TEMPLATE_DIR/examples/live-demos/_plugincode_/index.js"
# partials
configuration_option_template="$TEMPLATE_DIR/partials/configuration/<configuration_option>.adoc"
commands_template="$TEMPLATE_DIR/partials/commands/<plugincode>-cmds.adoc"
events_template="$TEMPLATE_DIR/partials/events/<plugincode>-events.adoc"
menu_items_template="$TEMPLATE_DIR/partials/menu-item-ids/<plugincode>-menu-items.adoc"
apis_template="$TEMPLATE_DIR/partials/plugin-apis/<plugincode>-apis.adoc"
toolbar_buttons_template="$TEMPLATE_DIR/partials/toolbar-button-ids/<plugincode>-toolbar-buttons.adoc"
configuration_option_template="$TEMPLATE_DIR/partials/configuration/_configuration_option_.adoc"
commands_template="$TEMPLATE_DIR/partials/commands/_plugincode_-cmds.adoc"
events_template="$TEMPLATE_DIR/partials/events/_plugincode_-events.adoc"
menu_items_template="$TEMPLATE_DIR/partials/menu-item-ids/_plugincode_-menu-items.adoc"
apis_template="$TEMPLATE_DIR/partials/plugin-apis/_plugincode_-apis.adoc"
toolbar_buttons_template="$TEMPLATE_DIR/partials/toolbar-button-ids/_plugincode_-toolbar-buttons.adoc"

# Verify that all template files exist
if [[ ! -e "$plugin_template" || ! -e "$configuration_option_template" || ! -e "$commands_template" || ! -e "$demo_html_template" || ! -e "$demo_js_template" || ! -e "$events_template" || ! -e "$menu_items_template" || ! -e "$apis_template" || ! -e "$toolbar_buttons_template" ]]; then
Expand All @@ -42,7 +42,7 @@ fi

# Files the user needs to create or update manually
icon_list="$TEMPLATE_DIR/partials/configuration/icon_list.adoc"
demo_example="$TEMPLATE_DIR/examples/live-demos/<plugincode>/example.js"
demo_example="$TEMPLATE_DIR/examples/live-demos/_plugincode_/example.js"
nav="$TEMPLATE_DIR/nav.adoc"
# demos
full_featured_html="$TEMPLATE_DIR/examples/live-demos/full-featured/index.html"
Expand Down

0 comments on commit 8cf59c0

Please sign in to comment.