Browse Source

Strip colons from endpoint ID; update docs

shalvah 4 years ago
parent
commit
831524f0c1
3 changed files with 3 additions and 3 deletions
  1. 1 1
      docs/index.md
  2. 1 1
      docs/migrating-v2.md
  3. 1 1
      src/Writing/Writer.php

+ 1 - 1
docs/index.md

@@ -4,7 +4,7 @@ Generate API documentation for humans from your Laravel/Lumen/[Dingo](https://gi
 
 
 ```eval_rst
-.. admonition:: Wondering where to get started? Try one of these links:
+.. admonition:: Wondering where to start? Try one of these links:
    
    - `What's new in v2 <migrating-v2.html>`_
    - `Migrating from mpociot/laravel-apidoc-generator <migrating.html>`_, or

+ 1 - 1
docs/migrating-v2.md

@@ -2,7 +2,7 @@
 
 Scribe 2 comes with a bunch of changes focused on making the documentation process easier and the output nicer. There aren't many "shiny" changes, mostly improvements to what works. We've marked required changes in the list below with a "Migration Required" label.
 
-This is also a release announcement for Scribe for JS! [Version 1 has now been released]()!🎉 
+This is also a release announcement for Scribe for JS! [Version 1 is now in beta](https://github.com/knuckleswtf/scribe-js) !🎉 
 
 ```eval_rst
 .. contents:: 

+ 1 - 1
src/Writing/Writer.php

@@ -162,7 +162,7 @@ class Writer
                 $route['output'] = (string)view('scribe::partials.endpoint')
                     ->with('hasRequestOptions', $hasRequestOptions)
                     ->with('route', $route)
-                    ->with('endpointId', $route['methods'][0].str_replace(['/', '?', '{', '}'], '-', $route['uri']))
+                    ->with('endpointId', $route['methods'][0].str_replace(['/', '?', '{', '}', ':'], '-', $route['uri']))
                     ->with('settings', $settings)
                     ->with('auth', $auth)
                     ->with('baseUrl', $this->baseUrl)