File tree Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1- import sublime , sublime_plugin , webbrowser
1+ import sublime_plugin
2+ import webbrowser
3+
24
35class LaravelDocsCommand (sublime_plugin .WindowCommand ):
46 def run (self , page = '' ):
57 # open a new page
68 url = 'https://laravel.com/docs/'
79 if (page != '' ):
8- url = url + page
10+ url = url + page
911 webbrowser .open_new_tab (url )
Original file line number Diff line number Diff line change 1- # sublime-laravel-docs
2- Easily navigate to the laravel docs from within sublime text
1+ Laravel Docs
2+ ============
3+
4+ Easily navigate to specific Laravel documentation pages from within Sublime Text.
5+
6+ Installing
7+ ----------
8+ ### Easy Install (with Package Control)
9+ You can install this plugin via [ Package Control] ( https://packagecontrol.io/installation ) .
10+
11+ 1 . Press ⌘/Ctrl + Shift + P to open the command palette.
12+ 2 . Type ` Package Control: Install Package ` and press enter. Then search for ` Laravel Docs ` , select the package and hit enter.
13+
14+
15+
16+ Feedback and contributions are welcome! [ Open an issue here] ( https://github.com/austenc/sublime-laravel-docs/issues ) .
Original file line number Diff line number Diff line change 2828 slug = url .split ('/' )[3 ].split ('#' )[0 ]
2929
3030 if (topic not in found ):
31+ found .append (topic )
32+
3133 if not first :
3234 f .write (', \n ' )
3335 else :
3436 f .write (' ' )
3537 first = False
36-
37- found .append (topic );
38+
3839 j = {
3940 "caption" : "Laravel Docs: {}" .format (topic ),
4041 "command" : "laravel_docs" ,
You can’t perform that action at this time.
0 commit comments