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

Brokwn download link in gh-pages #16519

Closed
janetkuo opened this issue Oct 29, 2015 · 5 comments

Comments

@janetkuo

This comment has been minimized.

Copy link
Member Author

@janetkuo janetkuo commented Oct 29, 2015

It's because gh-pages doesn't recognize .yaml.in file extension. I'll change all the xxx.yaml.in files to xxx-template.yaml (and change the related docs)

@bgrant0607 bgrant0607 mentioned this issue Oct 29, 2015
14 of 15 tasks complete
@bgrant0607

This comment has been minimized.

Copy link
Member

@bgrant0607 bgrant0607 commented Oct 29, 2015

How hard would it be to make the download link work for .yaml.in?

@bgrant0607

This comment has been minimized.

Copy link
Member

@bgrant0607 bgrant0607 commented Oct 29, 2015

_layouts/docwithnav.html

               function displaycodesample(targethref) {
                        var isCodeSample = false;
                        if ((targethref.indexOf('.yaml') > -1 && targethref.indexOf('.yaml') + 5 == targethref.length) || (targethref.indexOf('.jso
n') > -1 && targethref.indexOf('.json') + 5 ==  targethref.length)) {
                                $('#doccontent').load(location.origin + "/codeblockdisplay.html", function() {// load the code sample template
                                        $('#codeblock').load(targethref, function() { //load the code sample file into the 'code' tags of the templ
ate
                                                $('#codetitle').html(location.pathname); //set the page title
                                                $( "code" ).prepend( "<br />" ); //insert line break to correct unwanted 1st line indentation
                                        });
                                });
                                isCodeSample = true;
                        }
                        return isCodeSample;
                }
@janetkuo

This comment has been minimized.

Copy link
Member Author

@janetkuo janetkuo commented Oct 29, 2015

That's better. I'll make the download link work for .yaml.in instead.

@bgrant0607

This comment has been minimized.

Copy link
Member

@bgrant0607 bgrant0607 commented Oct 29, 2015

It doesn't seem to provide the same pretty view, but at least the yaml displays.

@bgrant0607 bgrant0607 closed this Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.