Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize index.blade.php ? #9

Open
rygilles opened this issue Mar 31, 2017 · 2 comments
Open

Customize index.blade.php ? #9

rygilles opened this issue Mar 31, 2017 · 2 comments

Comments

@rygilles
Copy link

Hi, it's a nice tool but I think it will be a good thing to "vendor publish" the src/resources/views/index.blade.php in the source directory for many reasons (in my case, i can't set a favicon for my documentation)

by changing [line 81 in src/Documentarian.php]

(https://github.com/mpociot/documentarian/blob/master/src/Documentarian.php#L81) from

$renderer = new BladeRenderer([__DIR__ . '/../resources/views'], ['cache_path' => $source_dir . '/_tmp']);

to this :

$renderer = new BladeRenderer([$source_dir . '/views'], ['cache_path' => $source_dir . '/_tmp']);
@robbieaverill
Copy link

@mpociot is this something you're willing to accept contributions for? I'm happy to make the changes required for the views to be publishable

@robbieaverill
Copy link

robbieaverill commented Oct 23, 2019

I've made a PR for this: #24

You can install this fork in your project to pull these changes in, if you'd like.

Add to composer.json:

    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/robbieaverill/documentarian.git"
        }
    ],

Then composer require --dev mpociot/documentarian:"dev-feature/customisable-views as 0.3.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants