diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php
index 1c0ee6bb..b9384c5b 100644
--- a/resources/views/index.blade.php
+++ b/resources/views/index.blade.php
@@ -13,7 +13,7 @@
-
+
@endif
> Base URL
diff --git a/src/Tools/Flags.php b/src/Tools/Flags.php
index 59089fa6..f487c3d5 100644
--- a/src/Tools/Flags.php
+++ b/src/Tools/Flags.php
@@ -4,5 +4,7 @@
class Flags
{
+ public const SCRIBE_VERSION = '2.1.0';
+
public static $shouldBeVerbose = false;
}
diff --git a/src/Writing/Writer.php b/src/Writing/Writer.php
index 9a585fda..9725a874 100644
--- a/src/Writing/Writer.php
+++ b/src/Writing/Writer.php
@@ -9,6 +9,7 @@
use Knuckles\Pastel\Pastel;
use Knuckles\Scribe\Tools\ConsoleOutputUtils;
use Knuckles\Scribe\Tools\DocumentationConfig;
+use Knuckles\Scribe\Tools\Flags;
use Knuckles\Scribe\Tools\Utils;
use Symfony\Component\Yaml\Yaml;
@@ -288,7 +289,7 @@ public function writeHtmlDocs(): void
$this->pastel->generate($this->sourceOutputPath . '/index.md', $this->staticTypeOutputPath);
// Add our custom JS
- copy(__DIR__.'/../../resources/js/tryitout.js', $this->staticTypeOutputPath . '/js/tryitout.js');
+ copy(__DIR__.'/../../resources/js/tryitout.js', $this->staticTypeOutputPath . '/js/tryitout-'.Flags::SCRIBE_VERSION.'.js');
if (!$this->isStatic) {
$this->performFinalTasksForLaravelType();