Skip to content

Commit f796b1a

Browse files
committed
updated readme
1 parent a805c35 commit f796b1a

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

LaravelDocs.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import sublime, sublime_plugin, webbrowser
1+
import sublime_plugin
2+
import webbrowser
3+
24

35
class 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)

README.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
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).

scrape.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@
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",

0 commit comments

Comments
 (0)