blob: fa04372f9da889d3481351822ad9dc26fa7a7e13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Scripts for MDBooks
These scripts are for helping with creating and editing MDBooks
---
### move.sh
`params: Name NewUrl`
This is for when you want to move a file. It will rename all the Urls to the new one you give, it matches to the name you give.
### rename.sh
`params: NewName Url`
This is for when you want to rename something to a new one. It will rename all instances with the new one you give, it matches to the url you give.
---
# TODO:
needs to be able to understand that mdown and html are "the same"
for example both of these should be replace:
```
// replace url from car to plane
[vehicle](./car.mdown)
// becomes:
[vehicle](./plane.mdown)
[vehicle](/car.html#doors)
// becomes:
[vehicle](/plane.html#doors)
```
So in general it needs to be able to do the following:
1. ignore the part after the extension and maintain it(e.g `.mdown` or `.html#header`
2. ignore the `./` or `/` at the beginning of a url if it is there, but also be ok with them not being there
|