Creating a new AsciiDoc File in IntelliJ IDE
File Names
A file’s name is used to create its page URL. Changing a file’s name will break links, cross-references (xrefs) in other files, and incoming links to the page from external websites.
When a file name is changed all cross-references (xrefs) links in all other policy files would need to be updated to the new name. This is why it is important that the file name be correct when initially created.
FILE NAME REQUIREMENTS:
-
Use all lowercase letters.
-
Do not use blank spaces. Separate words with hyphens.
-
Save AsciiDoc files with the .adoc extension.
-
Do not use symbols or special characters.
-
Do not include references to a version of the file in the File Name.
-
For example, 3000-v1.adoc or 3000-9-20-2024.adoc
-
Steps
-
In IntelliJ IDE open the Project you need to create a new file in.
Please ensure you have the correct branch open to perform any updates. |
-
In the file folder view section of IntelliJ navigate to the correct folder. This will typically be the pages folder for Policy Updates.
-
Right-click on that folder to open the context menu, expand the New section, and select
AsciiDoc File
-
This will generate a prompt to enter the file name. Please ensure the file name follows the requirements outlined above.
-
Once you have entered the file name press the Enter key to create the new file.
-
This will generate a prompt to add the file to the Git. Click Add button to add the file to the repository.
-
This will open the newly created blank AsciiDoc page.
-
To create the Title enter the = and a space and type in the Title of the new page and add any of the required attribute fields.
= 2000 General Program Overview :chapter-number: 2000 :effective-date: December 2022 :mt: MT-68 :policy-number: 2000 :policy-title: General Program Overview :previous-policy-number: MT 57