Closed trevor-coleman closed 5 months ago
Just adding one more feature -- going to get it to handle the /static folder correctly
OK it now also properly moves items from _static_
folders in projects the same way the CI script does.
And cleans up the tmp directory if its not needed any more
This adds a script that will create a symlink to your projects docs for easier testing:
To use the script, you'll need to run it with one of two commands:
add
orremove
.Add Symlink
The
add
command creates a new symbolic link. It requires two arguments: the project name and the directory path.This command creates a symbolic link at
./docs/[project_name]
which points to[path_to_directory]
, and if a directory exists at that path, backs up the original contents of the directory to./tmp/[project_name]
For example, if you want to create a symbolic link for a project called
ignite-cli
and the directory is located at../ignite/docs
, you'd run:And you'll end up with
./docs/ignite-cli
which points to../ignite/docs
Remove Symlink
The
remove
command deletes an existing symbolic link. It requires only one argument: the project name.This command removes the symbolic link found at
./docs/[project_name]
.For example, to remove the symbolic link we created in the earlier example for
ignite-cli
, you'd run: