File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 4848 // GitHub Repo & Branch for "Edit on GitHub" links
4949 'github_repo ' => env ('PERTUK_GITHUB_REPO ' , 'username/repo ' ), // @phpstan-ignore-line
5050 'github_branch ' => env ('PERTUK_GITHUB_BRANCH ' , 'main ' ), // @phpstan-ignore-line
51+ 'github_path ' => null , // Folder path in repo where docs are located (null = use same structure as local)
5152
5253];
Original file line number Diff line number Diff line change 66 $repo = config (' pertuk.github_repo' );
77 $branch = config (' pertuk.github_branch' , ' main' );
88 $root = config (' pertuk.root' ); // e.g. /var/www/html/docs
9- $relativeRoot = \Illuminate \Support \Str:: after ($root , base_path () . DIRECTORY_SEPARATOR ); // e.g. docs
9+ $relativeRoot = config ( ' pertuk.github_path ' ) ?? \Illuminate \Support \Str:: after ($root , base_path () . DIRECTORY_SEPARATOR ); // e.g. docs
1010@endphp
1111
1212<x-pertuk::pertuk-layout :title =" $title" :current-locale =" $current_locale" :current-version =" $current_version" :slug =" $slug" :items =" $items" >
You can’t perform that action at this time.
0 commit comments