Difference between revisions of "Template:HomebrewAutoload"

From 5etools Community Wiki
Jump to: navigation, search
(How to autoload include Homebrew Files into your local/server Install)
Line 6: Line 6:
 
  ]
 
  ]
  
Section, and add names of the homebrew files for each file inside quotes at set of quotes (including a <code>,</code> at the end of each file name that doesn't have another filename following it.
+
Section, and add names of the homebrew files for each file inside quotes at set of quotes (including a <code>,</code> at the end of each file name that has another filename following it.
  
 
EXAMPLE:
 
EXAMPLE:

Revision as of 22:00, 10 February 2020

How to autoload include Homebrew Files into your local/server Install

In the root of the site locate the 📂 Homebrew folder, place the homebrew files you wish to include automatically to your site within the folder. Find the 📝 index.json file and open it in a simple text editor, and locate this section

"toImport": [	
]

Section, and add names of the homebrew files for each file inside quotes at set of quotes (including a , at the end of each file name that has another filename following it.

EXAMPLE:

"toImport": [
    "Homebrew File1.json",
    "Homebrew File2.json",  
    "Homebrew File3.json"
]

Save the file 📝.

Then go to the 📂 js folder from the root. Find the file 📝 utils.js file and open it in a simple text editor, and search for _IS_DEPLOYED = which will have some numbers or "X.Y.Z" following. delete that line from the file.

If you'd rather - the current version of the site is v1.113.2 and you can alternatively replace "X.Y.Z" with the site version.

Save the file 📝.

You're good now.