Skip to content

Commit

Permalink
Rename compiled to downloads
Browse files Browse the repository at this point in the history
Move some of examples to main removing necessity for gh-pages
  • Loading branch information
mpnkhan committed Oct 14, 2021
1 parent 2523d6a commit 343326e
Show file tree
Hide file tree
Showing 14 changed files with 588 additions and 34 deletions.
20 changes: 10 additions & 10 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = function(grunt) {
files: [
'**/*.js',
'!**/*.min.js',
'!compiled/**',
'!downloads/**',
'!node_modules/**'
],
options: {
Expand All @@ -51,20 +51,20 @@ module.exports = function(grunt) {
footer: '<%= footer %>'
},
src: ['src/js/<%= pkg.name %>.js'],
dest: './compiled/js/<%= pkg.name %>.js'
dest: './downloads/js/<%= pkg.name %>.js'
},
gm: {
options: {
banner: '<%= greaseBanner %>'
},
src: './compiled/js/<%= pkg.name %>.min.js',
dest: './compiled/js/<%= pkg.name %>.user.js'
src: './downloads/js/<%= pkg.name %>.min.js',
dest: './downloads/js/<%= pkg.name %>.user.js'
}
},

uglify: {
options: {
sourceMap: './compiled/js/<%= pkg.name %>.min.map',
sourceMap: './downloads/js/<%= pkg.name %>.min.map',
banner: '<%= banner %> <%= bannerCond %>',
footer: '<%= footer %>',
mangle: false,
Expand All @@ -73,7 +73,7 @@ module.exports = function(grunt) {
},
dist: {
files: {
'./compiled/js/<%= pkg.name %>.min.js': ['src/js/<%= pkg.name %>.js']
'./downloads/js/<%= pkg.name %>.min.js': ['src/js/<%= pkg.name %>.js']
}
}
},
Expand All @@ -96,16 +96,16 @@ module.exports = function(grunt) {
files: [{
expand: true,
flatten: true,
src: ['./compiled/js/<%= pkg.name %>.js', './compiled/js/<%= pkg.name %>.min.js'],
dest: './compiled/js/'
src: ['./downloads/js/<%= pkg.name %>.js', './downloads/js/<%= pkg.name %>.min.js'],
dest: './downloads/js/'
}
]
}
},

clean: {
compiled: {
src: ["compiled/*"]
downloads: {
src: ["downloads/*"]
}
}

Expand Down
59 changes: 59 additions & 0 deletions _layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="description" content="SkipTo is a replacement for your old classic Skipnav link,! The SkipTo script creates a drop-down menu consisting of the links to the important places on a given web page. The menu will make it easier for keyboard and screen reader users to quickly jump to the desired location by simply choosing it from the list of options." />
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
<title>SkipTo</title>
</head>

<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner" role="banner" style="max-width: 1076px;">
<a id="forkme_banner" href="https://github.com/paypal/skipto">View on GitHub</a>
<a href="https://paypal.github.io"><img src="images/accessibility_SkipTo_withedgewhite_transp.png"
alt="Skip To Logo"></a>
<h1 id="project_title" style="display:inline; margin-left:10px;position:relative;top:-100px;">SkipTo
plugin by PayPal Accessibility Team</h1>
<section id="downloads">
<a class="zip_download_link" href="https://github.com/paypal/skipto/zipball/main">Download this
project as a .zip file</a>
<a class="tar_download_link" href="https://github.com/paypal/skipto/tarball/main">Download this
project as a tar.gz file</a>
</section>
</header>
</div>

<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner" role="main">
{{ content }}

</section>
</div>

<!-- FOOTER -->
<div id="footer_wrap" class="outer" role="contentinfo">
<footer class="inner" role="contentinfo">
<p class="copyright">Skipto maintained by <a href="https://github.com/paypal">PayPal</a></p>
<p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
<script>
var SkipToConfig = {
"settings": {
"skipTo": {
"headings": "h1 ,h2, h3",
"landmarks": "[role=banner],[role=main],[role=search]",
"displayOption": "static"
}
}
};
</script>

<script src="downloads/js/skipto.js"></script>
</body>
</html>
12 changes: 6 additions & 6 deletions compiled/js/skipto.js → downloads/js/skipto.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*! skipto - v4.1.3 - 2021-10-08
* https://github.com/paypal/skipto
* Copyright (c) 2021 PayPal Accessibility Team and University of Illinois; Licensed BSD */
/*@cc_on @*/
/*@if (@_jscript_version >= 5.8) @*/
/*! skipto - v4.1.3 - 2021-10-14
* https://github.com/paypal/skipto
* Copyright (c) 2021 PayPal Accessibility Team and University of Illinois; Licensed BSD */
/*@cc_on @*/
/*@if (@_jscript_version >= 5.8) @*/
/* ========================================================================
* Copyright (c) <2021> PayPal and University of Illinois
* All rights reserved.
Expand Down Expand Up @@ -1488,4 +1488,4 @@
);
});
})();
/*@end @*/
/*@end @*/
2 changes: 1 addition & 1 deletion compiled/js/skipto.min.js → downloads/js/skipto.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
34 changes: 17 additions & 17 deletions compiled/js/skipto.user.js → downloads/js/skipto.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg_hr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/blacktocat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sprite_download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions javascripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('This would be the main JS file.');
70 changes: 70 additions & 0 deletions stylesheets/pygment_trac.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
.highlight .hll { background-color: #ffffcc }
.highlight { background: #f0f3f3; }
.highlight .c { color: #0099FF; font-style: italic } /* Comment */
.highlight .err { color: #AA0000; background-color: #FFAAAA } /* Error */
.highlight .k { color: #006699; font-weight: bold } /* Keyword */
.highlight .o { color: #555555 } /* Operator */
.highlight .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #009999 } /* Comment.Preproc */
.highlight .c1 { color: #0099FF; font-style: italic } /* Comment.Single */
.highlight .cs { color: #0099FF; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #003300; font-weight: bold } /* Generic.Heading */
.highlight .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */
.highlight .go { color: #AAAAAA } /* Generic.Output */
.highlight .gp { color: #000099; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #003300; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #99CC66 } /* Generic.Traceback */
.highlight .kc { color: #006699; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #006699 } /* Keyword.Pseudo */
.highlight .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #007788; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #FF6600 } /* Literal.Number */
.highlight .s { color: #CC3300 } /* Literal.String */
.highlight .na { color: #330099 } /* Name.Attribute */
.highlight .nb { color: #336666 } /* Name.Builtin */
.highlight .nc { color: #00AA88; font-weight: bold } /* Name.Class */
.highlight .no { color: #336600 } /* Name.Constant */
.highlight .nd { color: #9999FF } /* Name.Decorator */
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #CC0000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #CC00FF } /* Name.Function */
.highlight .nl { color: #9999FF } /* Name.Label */
.highlight .nn { color: #00CCFF; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #330099; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #003333 } /* Name.Variable */
.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #FF6600 } /* Literal.Number.Float */
.highlight .mh { color: #FF6600 } /* Literal.Number.Hex */
.highlight .mi { color: #FF6600 } /* Literal.Number.Integer */
.highlight .mo { color: #FF6600 } /* Literal.Number.Oct */
.highlight .sb { color: #CC3300 } /* Literal.String.Backtick */
.highlight .sc { color: #CC3300 } /* Literal.String.Char */
.highlight .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #CC3300 } /* Literal.String.Double */
.highlight .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #CC3300 } /* Literal.String.Heredoc */
.highlight .si { color: #AA0000 } /* Literal.String.Interpol */
.highlight .sx { color: #CC3300 } /* Literal.String.Other */
.highlight .sr { color: #33AAAA } /* Literal.String.Regex */
.highlight .s1 { color: #CC3300 } /* Literal.String.Single */
.highlight .ss { color: #FFCC33 } /* Literal.String.Symbol */
.highlight .bp { color: #336666 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #003333 } /* Name.Variable.Class */
.highlight .vg { color: #003333 } /* Name.Variable.Global */
.highlight .vi { color: #003333 } /* Name.Variable.Instance */
.highlight .il { color: #FF6600 } /* Literal.Number.Integer.Long */

.type-csharp .highlight .k { color: #0000FF }
.type-csharp .highlight .kt { color: #0000FF }
.type-csharp .highlight .nf { color: #000000; font-weight: normal }
.type-csharp .highlight .nc { color: #2B91AF }
.type-csharp .highlight .nn { color: #000000 }
.type-csharp .highlight .s { color: #A31515 }
.type-csharp .highlight .sc { color: #A31515 }
Loading

0 comments on commit 343326e

Please sign in to comment.