docs icon indicating copy to clipboard operation
docs copied to clipboard

Update API URLs to match linode-docs-theme#400

Open nmelehan opened this issue 1 year ago • 1 comments

The following sed command will perform the required search-and-replace on a given markdown file in the docs repo:

's/\(\/docs\/api\/[a-z-]*\)\/#\([a-z-]*\)/\1\/\2\//g'

This command can be run on Linux (probably not on macOS without some tweaking) to execute the search and replace on all markdown files in the docs repo:

find ./ -type f -name '*.md' -exec sed -i -e 's/\(\/docs\/api\/[a-z-]*\)\/#\([a-z-]*\)/\1\/\2\//g' {} \;

nmelehan avatar Sep 15 '23 22:09 nmelehan