File tree 3 files changed +23
-6
lines changed
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
+
2
4
3
5
class LaravelDocsCommand (sublime_plugin .WindowCommand ):
4
6
def run (self , page = '' ):
5
7
# open a new page
6
8
url = 'https://laravel.com/docs/'
7
9
if (page != '' ):
8
- url = url + page
10
+ url = url + page
9
11
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 28
28
slug = url .split ('/' )[3 ].split ('#' )[0 ]
29
29
30
30
if (topic not in found ):
31
+ found .append (topic )
32
+
31
33
if not first :
32
34
f .write (', \n ' )
33
35
else :
34
36
f .write (' ' )
35
37
first = False
36
-
37
- found .append (topic );
38
+
38
39
j = {
39
40
"caption" : "Laravel Docs: {}" .format (topic ),
40
41
"command" : "laravel_docs" ,
You can’t perform that action at this time.
0 commit comments