-
Notifications
You must be signed in to change notification settings - Fork 177
How to Rename Rules
Video: How to rename an SSW Rule?
- Change the
title:
field in the frontmatter
- Change the
uri:
field in the frontmatter - Add the old URI to the
redirects:
list in the rule
For example, this rule was changed from:
Path: rules/accommodation---do-you-know-the-best-online-accommodation-websites/rule.md
---
type: rule
title: Accommodation - Do you know the best online accommodation websites?
guid: 8d59feea-03b4-4cfc-b26e-77b2655293d9
uri: accommodation---do-you-know-the-best-online-accommodation-websites
redirects: []
---
To:
Path: rules/the-best-accommodation-websites/rule.md
---
type: rule
title: Accommodation - Do you know the best online accommodation websites?
guid: 8d59feea-03b4-4cfc-b26e-77b2655293d9
uri: the-best-accommodation-websites
redirects:
- accommodation---do-you-know-the-best-online-accommodation-websites
---
Rename the rule's folder to be the same as the new URI
- Open the rule in GitHub
- Click the 'Edit' button
Figure: Open the Editor in GitHub
- Click the file name at the top of the editor
- Move the cursor to the start of this field
Figure: Place your cursor in the file editor
- Press 'backspace' on your keyboard to open the editor field for the folder name
- Change the folder name
Figure: Pressing 'backspace' will move the editor field to the folder
- Press '/' on your keyboard to navigate back to the file name
- Ensure the file name is the same as before (usually 'rule.md'
Figure: Press '/' and make sure the file name is correct
- Save your changes at the bottom of the page as you would with any other change
To find all the categories that this rule is in, follow these steps:
-
Navigate to the rule on ssw.com.au/rules
-
Click on the category in the breadcrumb
-
In the category, click the edit button in the top right. You will be navigated to the category file in GitHub
-
Open the same file in your fork of the repository
-
Click the edit pencil
-
Find the old URI in the
index
and change it to the new one -
If there is more than one category in the breadcrumb like this in step 2, repeat steps 2 - 6 for each category