Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
d27d3203
Commit
d27d3203
authored
Nov 03, 2015
by
Pyry-Samuli Lahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add namespaces to generate-themes-doc.fish
* Resolves oh-my-fish/oh-my-fish#116
parent
c57fed27
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
91 deletions
+124
-91
docs/Themes.md
docs/Themes.md
+121
-90
tools/generate-themes-doc.fish
tools/generate-themes-doc.fish
+3
-1
No files found.
docs/Themes.md
View file @
d27d3203
This diff is collapsed.
Click to expand it.
tools/generate-themes-doc.fish
View file @
d27d3203
...
...
@@ -14,7 +14,9 @@ function __write_theme_readme -a name raw_content readme
curl -s "$raw_content/$readme" | \
sed -r 's/^#(.*)$/###\1/gi' | \
sed -r 's/^=+$//gi' | \
sed -r 's/^!\[(.*)\]\(([^h][^t][^t].*)\)$/![\1]('$escaped_raw_content'\/\2)/gi' \
sed -r 's/^!\[(.*)\]\(([^h][^t][^t].*)\)$/![\1]('$escaped_raw_content'\/\2)/gi' | \
sed -r 's/\[([^\]+)\]\[([a-zA-Z0-9]+)\]/[\1][THEMES-NAMESPACE-'"$name"'-\2]/gi' | \
sed -r 's/\[([a-zA-Z0-9]+)\]: (.+)/[THEMES-NAMESPACE-'"$name"'-\1]: \2/gi' \
>> $temp_theme_contents
echo "" >> $temp_theme_contents
echo "" >> $temp_theme_contents
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment