├── .nojekyll ├── CNAME ├── ads.txt ├── README.md ├── img ├── example.png ├── favicon.ico ├── logo_node.png ├── logo_npm.png ├── logo_github.png ├── logo_inveris.png ├── logo_mashape.png ├── preloader-flat.gif └── apidoc_logo_2016.png ├── example └── assets │ ├── favicon.ico │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── apple-touch-icon.png │ ├── android-chrome-192x192.png │ ├── android-chrome-512x512.png │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ ├── glyphicons-halflings-regular.woff2 │ └── prism.css ├── example_basic ├── img │ ├── favicon.ico │ ├── glyphicons-halflings.png │ └── glyphicons-halflings-white.png ├── vendor │ ├── prettify │ │ ├── lang-rd.js │ │ ├── lang-go.js │ │ ├── lang-tex.js │ │ ├── lang-proto.js │ │ ├── lang-llvm.js │ │ ├── lang-yaml.js │ │ ├── lang-basic.js │ │ ├── lang-wiki.js │ │ ├── lang-lua.js │ │ ├── lang-hs.js │ │ ├── lang-erlang.js │ │ ├── lang-tcl.js │ │ ├── prettify.css │ │ ├── lang-r.js │ │ ├── lang-pascal.js │ │ ├── lang-lisp.js │ │ ├── lang-css.js │ │ ├── lang-mumps.js │ │ ├── lang-scala.js │ │ ├── lang-dart.js │ │ ├── lang-apollo.js │ │ ├── lang-ml.js │ │ ├── lang-n.js │ │ ├── lang-vhdl.js │ │ ├── lang-clj.js │ │ ├── lang-vb.js │ │ └── lang-sql.js │ ├── path-to-regexp │ │ ├── LICENSE │ │ └── index.js │ ├── prettify.css │ └── polyfill.js ├── api_project.json ├── api_project.js ├── locales │ ├── locale.js │ └── de.js ├── api_data.json └── api_data.js ├── example_full ├── img │ ├── favicon.ico │ ├── glyphicons-halflings.png │ └── glyphicons-halflings-white.png ├── vendor │ ├── prettify │ │ ├── lang-rd.js │ │ ├── lang-go.js │ │ ├── lang-tex.js │ │ ├── lang-proto.js │ │ ├── lang-llvm.js │ │ ├── lang-yaml.js │ │ ├── lang-basic.js │ │ ├── lang-wiki.js │ │ ├── lang-lua.js │ │ ├── lang-hs.js │ │ ├── lang-erlang.js │ │ ├── lang-tcl.js │ │ ├── prettify.css │ │ ├── lang-r.js │ │ ├── lang-pascal.js │ │ ├── lang-lisp.js │ │ ├── lang-css.js │ │ ├── lang-mumps.js │ │ ├── lang-scala.js │ │ ├── lang-dart.js │ │ ├── lang-apollo.js │ │ ├── lang-ml.js │ │ ├── lang-n.js │ │ ├── lang-vhdl.js │ │ ├── lang-clj.js │ │ ├── lang-vb.js │ │ └── lang-sql.js │ ├── path-to-regexp │ │ ├── LICENSE │ │ └── index.js │ ├── prettify.css │ └── polyfill.js ├── locales │ ├── locale.js │ └── de.js ├── api_project.json └── api_project.js ├── example_inherit ├── img │ ├── favicon.ico │ ├── glyphicons-halflings.png │ └── glyphicons-halflings-white.png ├── vendor │ ├── prettify │ │ ├── lang-rd.js │ │ ├── lang-go.js │ │ ├── lang-tex.js │ │ ├── lang-proto.js │ │ ├── lang-llvm.js │ │ ├── lang-yaml.js │ │ ├── lang-basic.js │ │ ├── lang-wiki.js │ │ ├── lang-lua.js │ │ ├── lang-hs.js │ │ ├── lang-erlang.js │ │ ├── lang-tcl.js │ │ ├── prettify.css │ │ ├── lang-r.js │ │ ├── lang-pascal.js │ │ ├── lang-lisp.js │ │ ├── lang-css.js │ │ ├── lang-mumps.js │ │ ├── lang-scala.js │ │ ├── lang-dart.js │ │ ├── lang-apollo.js │ │ ├── lang-ml.js │ │ ├── lang-n.js │ │ ├── lang-vhdl.js │ │ ├── lang-clj.js │ │ ├── lang-vb.js │ │ └── lang-sql.js │ ├── path-to-regexp │ │ ├── LICENSE │ │ └── index.js │ ├── prettify.css │ └── polyfill.js ├── api_project.json ├── api_project.js ├── locales │ ├── locale.js │ └── de.js ├── api_data.json └── api_data.js ├── example_versioning ├── img │ ├── favicon.ico │ ├── glyphicons-halflings.png │ └── glyphicons-halflings-white.png ├── api_project.json ├── api_project.js ├── vendor │ ├── prettify │ │ ├── lang-rd.js │ │ ├── lang-go.js │ │ ├── lang-tex.js │ │ ├── lang-proto.js │ │ ├── lang-llvm.js │ │ ├── lang-yaml.js │ │ ├── lang-basic.js │ │ ├── lang-wiki.js │ │ ├── lang-lua.js │ │ ├── lang-hs.js │ │ ├── lang-erlang.js │ │ ├── lang-tcl.js │ │ ├── prettify.css │ │ ├── lang-r.js │ │ ├── lang-pascal.js │ │ ├── lang-lisp.js │ │ ├── lang-css.js │ │ ├── lang-mumps.js │ │ ├── lang-scala.js │ │ ├── lang-dart.js │ │ ├── lang-apollo.js │ │ ├── lang-ml.js │ │ ├── lang-n.js │ │ ├── lang-vhdl.js │ │ ├── lang-clj.js │ │ ├── lang-vb.js │ │ └── lang-sql.js │ ├── path-to-regexp │ │ ├── LICENSE │ │ └── index.js │ ├── prettify.css │ └── polyfill.js ├── locales │ ├── locale.js │ └── de.js ├── api_data.json └── api_data.js ├── source ├── example │ ├── header.md │ ├── footer.md │ ├── apidoc.json │ ├── example.js │ └── _apidoc.js ├── example_versioning │ ├── apidoc.json │ ├── _apidoc.js │ └── example.js ├── example_full │ ├── footer.md │ ├── apidoc.json │ ├── header.md │ ├── example.js │ └── _apidoc.js ├── example_basic │ ├── apidoc.json │ └── example.js └── example_inherit │ ├── apidoc.json │ └── example.js ├── .gitignore └── css └── easy-responsive-tabs.css /.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | apidocjs.com -------------------------------------------------------------------------------- /ads.txt: -------------------------------------------------------------------------------- 1 | google.com, pub-8293335875337444, DIRECT, f08c47fec0942fa0 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | apidocjs.com 2 | ============ 3 | 4 | [apidocjs.com](http://apidocjs.com) Website -------------------------------------------------------------------------------- /img/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/img/example.png -------------------------------------------------------------------------------- /img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/img/favicon.ico -------------------------------------------------------------------------------- /img/logo_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/img/logo_node.png -------------------------------------------------------------------------------- /img/logo_npm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/img/logo_npm.png -------------------------------------------------------------------------------- /img/logo_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/img/logo_github.png -------------------------------------------------------------------------------- /img/logo_inveris.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/img/logo_inveris.png -------------------------------------------------------------------------------- /img/logo_mashape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/img/logo_mashape.png -------------------------------------------------------------------------------- /img/preloader-flat.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/img/preloader-flat.gif -------------------------------------------------------------------------------- /img/apidoc_logo_2016.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/img/apidoc_logo_2016.png -------------------------------------------------------------------------------- /example/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/favicon.ico -------------------------------------------------------------------------------- /example_basic/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_basic/img/favicon.ico -------------------------------------------------------------------------------- /example_full/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_full/img/favicon.ico -------------------------------------------------------------------------------- /example/assets/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/favicon-16x16.png -------------------------------------------------------------------------------- /example/assets/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/favicon-32x32.png -------------------------------------------------------------------------------- /example_inherit/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_inherit/img/favicon.ico -------------------------------------------------------------------------------- /example_versioning/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_versioning/img/favicon.ico -------------------------------------------------------------------------------- /example/assets/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/apple-touch-icon.png -------------------------------------------------------------------------------- /source/example/header.md: -------------------------------------------------------------------------------- 1 | ## Welcome to apiDoc 2 | 3 | Please visit [apidocjs.com](http://apidocjs.com) with the full documentation. 4 | -------------------------------------------------------------------------------- /example/assets/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/android-chrome-192x192.png -------------------------------------------------------------------------------- /example/assets/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/android-chrome-512x512.png -------------------------------------------------------------------------------- /example_basic/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_basic/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /example_full/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_full/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /example_inherit/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_inherit/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /example/assets/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /example/assets/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /example_full/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_full/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /example_versioning/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_versioning/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /source/example/footer.md: -------------------------------------------------------------------------------- 1 | ## Epilogue 2 | 3 | Suggestions, contact, support and error reporting on [GitHub](https://github.com/apidoc/apidoc/issues) 4 | -------------------------------------------------------------------------------- /example/assets/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /example/assets/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example/assets/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /example_basic/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_basic/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /source/example_versioning/apidoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example-versioning", 3 | "version": "0.2.0", 4 | "description": "apiDoc versioning example" 5 | } -------------------------------------------------------------------------------- /example_inherit/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_inherit/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /example_versioning/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apidoc/apidocjs.com/gh-pages/example_versioning/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /source/example_full/footer.md: -------------------------------------------------------------------------------- 1 | # Example text from footer.md 2 | 3 | This text is from file "footer.md". 4 | 5 | ## HowTo include 6 | 7 | Watch header.md for further information. 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | .project 10 | .settings/ 11 | 12 | pids 13 | logs 14 | results 15 | 16 | npm-debug.log 17 | -------------------------------------------------------------------------------- /source/example_basic/apidoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example-basic", 3 | "version": "0.1.0", 4 | "description": "apiDoc basic example", 5 | "template": { 6 | "withCompare": false 7 | } 8 | } -------------------------------------------------------------------------------- /source/example_inherit/apidoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example-inherit", 3 | "version": "0.1.0", 4 | "description": "apiDoc inherit example", 5 | "template": { 6 | "withCompare": false 7 | } 8 | } -------------------------------------------------------------------------------- /example_versioning/api_project.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example-versioning", 3 | "version": "0.2.0", 4 | "description": "apiDoc versioning example", 5 | "generator": { 6 | "version": "0.9.0", 7 | "time": "2014-11-28T14:56:29.702Z" 8 | }, 9 | "apidoc": "0.2.0" 10 | } -------------------------------------------------------------------------------- /example_versioning/api_project.js: -------------------------------------------------------------------------------- 1 | define({ 2 | "name": "example-versioning", 3 | "version": "0.2.0", 4 | "description": "apiDoc versioning example", 5 | "generator": { 6 | "version": "0.9.0", 7 | "time": "2014-11-28T14:56:29.702Z" 8 | }, 9 | "apidoc": "0.2.0" 10 | }); -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-rd.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[@-Za-z]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[()[\]{}]+/]]),["Rd","rd"]); 2 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-rd.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[@-Za-z]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[()[\]{}]+/]]),["Rd","rd"]); 2 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-rd.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[@-Za-z]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[()[\]{}]+/]]),["Rd","rd"]); 2 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-rd.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[@-Za-z]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[()[\]{}]+/]]),["Rd","rd"]); 2 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-go.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]); 2 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-go.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]); 2 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-tex.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]); 2 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-tex.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]); 2 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-go.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]); 2 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-tex.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]); 2 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-go.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]); 2 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-tex.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]); 2 | -------------------------------------------------------------------------------- /example_basic/api_project.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example-basic", 3 | "version": "0.1.0", 4 | "description": "apiDoc basic example", 5 | "template": { 6 | "withCompare": false 7 | }, 8 | "generator": { 9 | "version": "0.9.0", 10 | "time": "2014-11-28T14:54:55.224Z" 11 | }, 12 | "apidoc": "0.2.0" 13 | } -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /example_inherit/api_project.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example-inherit", 3 | "version": "0.1.0", 4 | "description": "apiDoc inherit example", 5 | "template": { 6 | "withCompare": false 7 | }, 8 | "generator": { 9 | "version": "0.9.0", 10 | "time": "2014-11-28T14:55:38.669Z" 11 | }, 12 | "apidoc": "0.2.0" 13 | } -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /example_basic/api_project.js: -------------------------------------------------------------------------------- 1 | define({ 2 | "name": "example-basic", 3 | "version": "0.1.0", 4 | "description": "apiDoc basic example", 5 | "template": { 6 | "withCompare": false 7 | }, 8 | "generator": { 9 | "version": "0.9.0", 10 | "time": "2014-11-28T14:54:55.224Z" 11 | }, 12 | "apidoc": "0.2.0" 13 | }); -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /example_inherit/api_project.js: -------------------------------------------------------------------------------- 1 | define({ 2 | "name": "example-inherit", 3 | "version": "0.1.0", 4 | "description": "apiDoc inherit example", 5 | "template": { 6 | "withCompare": false 7 | }, 8 | "generator": { 9 | "version": "0.9.0", 10 | "time": "2014-11-28T14:55:38.669Z" 11 | }, 12 | "apidoc": "0.2.0" 13 | }); -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-llvm.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^!?"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["com",/^;[^\n\r]*/,null,";"]],[["pln",/^[!%@](?:[$\-.A-Z_a-z][\w$\-.]*|\d+)/],["kwd",/^[^\W\d]\w*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[Xx][\dA-Fa-f]+)/],["pun",/^[(-*,:<->[\]{}]|\.\.\.$/]]),["llvm","ll"]); 2 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-llvm.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^!?"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["com",/^;[^\n\r]*/,null,";"]],[["pln",/^[!%@](?:[$\-.A-Z_a-z][\w$\-.]*|\d+)/],["kwd",/^[^\W\d]\w*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[Xx][\dA-Fa-f]+)/],["pun",/^[(-*,:<->[\]{}]|\.\.\.$/]]),["llvm","ll"]); 2 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-llvm.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^!?"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["com",/^;[^\n\r]*/,null,";"]],[["pln",/^[!%@](?:[$\-.A-Z_a-z][\w$\-.]*|\d+)/],["kwd",/^[^\W\d]\w*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[Xx][\dA-Fa-f]+)/],["pun",/^[(-*,:<->[\]{}]|\.\.\.$/]]),["llvm","ll"]); 2 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-llvm.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^!?"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["com",/^;[^\n\r]*/,null,";"]],[["pln",/^[!%@](?:[$\-.A-Z_a-z][\w$\-.]*|\d+)/],["kwd",/^[^\W\d]\w*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[Xx][\dA-Fa-f]+)/],["pun",/^[(-*,:<->[\]{}]|\.\.\.$/]]),["llvm","ll"]); 2 | -------------------------------------------------------------------------------- /source/example/apidoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "apidoc-example", 3 | "version": "0.3.0", 4 | "description": "apiDoc example project", 5 | "header": { 6 | "filename": "header.md" 7 | }, 8 | "footer": { 9 | "filename": "footer.md" 10 | }, 11 | "order": [ 12 | "GetUser", 13 | "PostUser" 14 | ], 15 | "template": { 16 | "withCompare": true, 17 | "withGenerator": true 18 | } 19 | } -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-basic.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun", 3 | /^.[^\s\w"$%.]*/,a]]),["basic","cbm"]); 4 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-basic.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun", 3 | /^.[^\s\w"$%.]*/,a]]),["basic","cbm"]); 4 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-basic.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun", 3 | /^.[^\s\w"$%.]*/,a]]),["basic","cbm"]); 4 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-basic.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun", 3 | /^.[^\s\w"$%.]*/,a]]),["basic","cbm"]); 4 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-wiki.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\d\t a-gi-z\xa0]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[*=[\]^~]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^[A-Z][a-z][\da-z]+[A-Z][a-z][^\W_]+\b/],["lang-",/^{{{([\S\s]+?)}}}/],["lang-",/^`([^\n\r`]+)`/],["str",/^https?:\/\/[^\s#/?]*(?:\/[^\s#?]*)?(?:\?[^\s#]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\S\s])[^\n\r#*=A-[^`h{~]*/]]),["wiki"]); 2 | PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-wiki.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\d\t a-gi-z\xa0]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[*=[\]^~]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^[A-Z][a-z][\da-z]+[A-Z][a-z][^\W_]+\b/],["lang-",/^{{{([\S\s]+?)}}}/],["lang-",/^`([^\n\r`]+)`/],["str",/^https?:\/\/[^\s#/?]*(?:\/[^\s#?]*)?(?:\?[^\s#]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\S\s])[^\n\r#*=A-[^`h{~]*/]]),["wiki"]); 2 | PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-wiki.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\d\t a-gi-z\xa0]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[*=[\]^~]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^[A-Z][a-z][\da-z]+[A-Z][a-z][^\W_]+\b/],["lang-",/^{{{([\S\s]+?)}}}/],["lang-",/^`([^\n\r`]+)`/],["str",/^https?:\/\/[^\s#/?]*(?:\/[^\s#?]*)?(?:\?[^\s#]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\S\s])[^\n\r#*=A-[^`h{~]*/]]),["wiki"]); 2 | PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-lua.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i], 2 | ["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-lua.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i], 2 | ["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-wiki.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\d\t a-gi-z\xa0]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[*=[\]^~]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^[A-Z][a-z][\da-z]+[A-Z][a-z][^\W_]+\b/],["lang-",/^{{{([\S\s]+?)}}}/],["lang-",/^`([^\n\r`]+)`/],["str",/^https?:\/\/[^\s#/?]*(?:\/[^\s#?]*)?(?:\?[^\s#]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\S\s])[^\n\r#*=A-[^`h{~]*/]]),["wiki"]); 2 | PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]); 3 | -------------------------------------------------------------------------------- /source/example_full/apidoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "apidoc-example", 3 | "version": "0.3.0", 4 | "description": "apiDoc example project", 5 | "title": "Custom apiDoc browser title", 6 | "url" : "https://api.github.com/v1", 7 | "header": { 8 | "title": "My own header title", 9 | "filename": "header.md" 10 | }, 11 | "footer": { 12 | "title": "My own footer title", 13 | "filename": "footer.md" 14 | }, 15 | "order": [ 16 | "GetUser", 17 | "PostUser" 18 | ], 19 | "template": { 20 | "withCompare": true, 21 | "withGenerator": true 22 | } 23 | } -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-lua.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i], 2 | ["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-lua.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i], 2 | ["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-erlang.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["lit",/^[a-z]\w*/],["lit",/^'(?:[^\n\f\r'\\]|\\[^&])+'?/,null,"'"],["lit",/^\?[^\t\n ({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], 2 | ["kwd",/^-[_a-z]+/],["typ",/^[A-Z_]\w*/],["pun",/^[,.;]/]]),["erlang","erl"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-erlang.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["lit",/^[a-z]\w*/],["lit",/^'(?:[^\n\f\r'\\]|\\[^&])+'?/,null,"'"],["lit",/^\?[^\t\n ({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], 2 | ["kwd",/^-[_a-z]+/],["typ",/^[A-Z_]\w*/],["pun",/^[,.;]/]]),["erlang","erl"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-erlang.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["lit",/^[a-z]\w*/],["lit",/^'(?:[^\n\f\r'\\]|\\[^&])+'?/,null,"'"],["lit",/^\?[^\t\n ({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], 2 | ["kwd",/^-[_a-z]+/],["typ",/^[A-Z_]\w*/],["pun",/^[,.;]/]]),["erlang","erl"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-erlang.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["lit",/^[a-z]\w*/],["lit",/^'(?:[^\n\f\r'\\]|\\[^&])+'?/,null,"'"],["lit",/^\?[^\t\n ({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], 2 | ["kwd",/^-[_a-z]+/],["typ",/^[A-Z_]\w*/],["pun",/^[,.;]/]]),["erlang","erl"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-tcl.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^{+/,a,"{"],["clo",/^}+/,a,"}"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,a],["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit", 3 | /^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["tcl"]); 4 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-tcl.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^{+/,a,"{"],["clo",/^}+/,a,"}"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,a],["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit", 3 | /^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["tcl"]); 4 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-tcl.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^{+/,a,"{"],["clo",/^}+/,a,"}"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,a],["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit", 3 | /^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["tcl"]); 4 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-tcl.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^{+/,a,"{"],["clo",/^}+/,a,"}"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,a],["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit", 3 | /^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["tcl"]); 4 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /example_full/vendor/prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-r.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/], 2 | ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-r.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/], 2 | ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-r.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/], 2 | ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-r.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/], 2 | ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-pascal.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^'(?:[^\n\r'\\]|\\.)*(?:'|$)/,a,"'"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/,a],["kwd",/^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i,a], 3 | ["lit",/^(?:true|false|self|nil)/i,a],["pln",/^[a-z][^\W_]*/i,a],["lit",/^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i,a,"0123456789"],["pun",/^.[^\s\w$'./@]*/,a]]),["pascal"]); 4 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-pascal.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^'(?:[^\n\r'\\]|\\.)*(?:'|$)/,a,"'"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/,a],["kwd",/^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i,a], 3 | ["lit",/^(?:true|false|self|nil)/i,a],["pln",/^[a-z][^\W_]*/i,a],["lit",/^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i,a,"0123456789"],["pun",/^.[^\s\w$'./@]*/,a]]),["pascal"]); 4 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-pascal.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^'(?:[^\n\r'\\]|\\.)*(?:'|$)/,a,"'"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/,a],["kwd",/^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i,a], 3 | ["lit",/^(?:true|false|self|nil)/i,a],["pln",/^[a-z][^\W_]*/i,a],["lit",/^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i,a,"0123456789"],["pun",/^.[^\s\w$'./@]*/,a]]),["pascal"]); 4 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-pascal.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^'(?:[^\n\r'\\]|\\.)*(?:'|$)/,a,"'"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/,a],["kwd",/^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i,a], 3 | ["lit",/^(?:true|false|self|nil)/i,a],["pln",/^[a-z][^\W_]*/i,a],["lit",/^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i,a,"0123456789"],["pun",/^.[^\s\w$'./@]*/,a]]),["pascal"]); 4 | -------------------------------------------------------------------------------- /source/example_full/header.md: -------------------------------------------------------------------------------- 1 | # Example text from header.md 2 | 3 | This text is from file "header.md". 4 | 5 | ## HowTo include 6 | 7 | In your projects "package.json" you can set "apidoc.header" with a title and a filename to include this file into your documentation. 8 | 9 | This example attempts to integrate "header.md" and "footer.md". 10 | 11 | { 12 | "name": "example", 13 | "version": "0.3.0", 14 | "description": "apidoc example project.", 15 | "apidoc": { 16 | "header": { 17 | "title": "My own header title", 18 | "filename": "header.md" 19 | }, 20 | "footer": { 21 | "title": "My own footer title", 22 | "filename": "footert.md" 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]); 4 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]); 4 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]); 4 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]); 4 | -------------------------------------------------------------------------------- /source/example_versioning/_apidoc.js: -------------------------------------------------------------------------------- 1 | /* 2 | * This file contain old version documentation blocks. 3 | */ 4 | 5 | /** 6 | * @api {get} /user/:id Get User information 7 | * @apiVersion 0.1.0 8 | * @apiName GetUser 9 | * @apiGroup User 10 | * 11 | * @apiParam {Number} id Users unique ID. 12 | * 13 | * @apiSuccess {String} firstname Firstname of the User. 14 | * @apiSuccess {String} lastname Lastname of the User. 15 | * 16 | * @apiSuccessExample Success-Response: 17 | * HTTP/1.1 200 OK 18 | * { 19 | * "firstname": "John", 20 | * "lastname": "Doe" 21 | * } 22 | * 23 | * @apiError UserNotFound The id of the User was not found. 24 | * 25 | * @apiErrorExample Error-Response: 26 | * HTTP/1.1 404 Not Found 27 | * { 28 | * "error": "UserNotFound" 29 | * } 30 | */ -------------------------------------------------------------------------------- /example_basic/locales/locale.js: -------------------------------------------------------------------------------- 1 | define([ 2 | './locales/de.js' 3 | ], function() { 4 | var locales = {}; 5 | for(index in arguments) 6 | { 7 | for(property in arguments[index]) 8 | { 9 | locales[property] = arguments[index][property]; 10 | } // for 11 | } // for 12 | 13 | var language = ((navigator.language) ? navigator.language : navigator.userLanguage).substr(0, 2).toLowerCase(); 14 | if( ! locales['en']) locales['en'] = {}; 15 | if( ! locales[language]) language = 'en'; 16 | 17 | var locale = locales[language]; 18 | 19 | var __ = function(text) 20 | { 21 | var index = locale[text]; 22 | if(index === undefined) return text; 23 | return index; 24 | }; // __ 25 | 26 | return { 27 | __: __, 28 | locales: locales, 29 | locale: locale 30 | }; 31 | }); 32 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-css.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n\u000c"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]+)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//], 2 | ["com",/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /example_full/locales/locale.js: -------------------------------------------------------------------------------- 1 | define([ 2 | './locales/de.js' 3 | ], function() { 4 | var locales = {}; 5 | for(index in arguments) 6 | { 7 | for(property in arguments[index]) 8 | { 9 | locales[property] = arguments[index][property]; 10 | } // for 11 | } // for 12 | 13 | var language = ((navigator.language) ? navigator.language : navigator.userLanguage).substr(0, 2).toLowerCase(); 14 | if( ! locales['en']) locales['en'] = {}; 15 | if( ! locales[language]) language = 'en'; 16 | 17 | var locale = locales[language]; 18 | 19 | var __ = function(text) 20 | { 21 | var index = locale[text]; 22 | if(index === undefined) return text; 23 | return index; 24 | }; // __ 25 | 26 | return { 27 | __: __, 28 | locales: locales, 29 | locale: locale 30 | }; 31 | }); 32 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-css.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n\u000c"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]+)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//], 2 | ["com",/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /example_inherit/locales/locale.js: -------------------------------------------------------------------------------- 1 | define([ 2 | './locales/de.js' 3 | ], function() { 4 | var locales = {}; 5 | for(index in arguments) 6 | { 7 | for(property in arguments[index]) 8 | { 9 | locales[property] = arguments[index][property]; 10 | } // for 11 | } // for 12 | 13 | var language = ((navigator.language) ? navigator.language : navigator.userLanguage).substr(0, 2).toLowerCase(); 14 | if( ! locales['en']) locales['en'] = {}; 15 | if( ! locales[language]) language = 'en'; 16 | 17 | var locale = locales[language]; 18 | 19 | var __ = function(text) 20 | { 21 | var index = locale[text]; 22 | if(index === undefined) return text; 23 | return index; 24 | }; // __ 25 | 26 | return { 27 | __: __, 28 | locales: locales, 29 | locale: locale 30 | }; 31 | }); 32 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-css.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n\u000c"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]+)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//], 2 | ["com",/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /example_versioning/locales/locale.js: -------------------------------------------------------------------------------- 1 | define([ 2 | './locales/de.js' 3 | ], function() { 4 | var locales = {}; 5 | for(index in arguments) 6 | { 7 | for(property in arguments[index]) 8 | { 9 | locales[property] = arguments[index][property]; 10 | } // for 11 | } // for 12 | 13 | var language = ((navigator.language) ? navigator.language : navigator.userLanguage).substr(0, 2).toLowerCase(); 14 | if( ! locales['en']) locales['en'] = {}; 15 | if( ! locales[language]) language = 'en'; 16 | 17 | var locale = locales[language]; 18 | 19 | var __ = function(text) 20 | { 21 | var index = locale[text]; 22 | if(index === undefined) return text; 23 | return index; 24 | }; // __ 25 | 26 | return { 27 | __: __, 28 | locales: locales, 29 | locale: locale 30 | }; 31 | }); 32 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-css.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n\u000c"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]+)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//], 2 | ["com",/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /source/example_basic/example.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Basic Example 3 | * 4 | * This is a basic example for apiDoc. 5 | * Documentation blocks without @api (like this block) will be ignored. 6 | */ 7 | 8 | /** 9 | * @api {get} /user/:id Get User information 10 | * @apiName GetUser 11 | * @apiGroup User 12 | * 13 | * @apiParam {Number} id Users unique ID. 14 | * 15 | * @apiSuccess {String} firstname Firstname of the User. 16 | * @apiSuccess {String} lastname Lastname of the User. 17 | * 18 | * @apiSuccessExample Success-Response: 19 | * HTTP/1.1 200 OK 20 | * { 21 | * "firstname": "John", 22 | * "lastname": "Doe" 23 | * } 24 | * 25 | * @apiError UserNotFound The id of the User was not found. 26 | * 27 | * @apiErrorExample Error-Response: 28 | * HTTP/1.1 404 Not Found 29 | * { 30 | * "error": "UserNotFound" 31 | * } 32 | */ 33 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-mumps.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"]|\\.)*"/,null,'"']],[["com",/^;[^\n\r]*/,null,";"],["dec",/^\$(?:d|device|ec|ecode|es|estack|et|etrap|h|horolog|i|io|j|job|k|key|p|principal|q|quit|st|stack|s|storage|sy|system|t|test|tl|tlevel|tr|trestart|x|y|z[a-z]*|a|ascii|c|char|d|data|e|extract|f|find|fn|fnumber|g|get|j|justify|l|length|na|name|o|order|p|piece|ql|qlength|qs|qsubscript|q|query|r|random|re|reverse|s|select|st|stack|t|text|tr|translate|nan)\b/i, 2 | null],["kwd",/^(?:[^$]b|break|c|close|d|do|e|else|f|for|g|goto|h|halt|h|hang|i|if|j|job|k|kill|l|lock|m|merge|n|new|o|open|q|quit|r|read|s|set|tc|tcommit|tre|trestart|tro|trollback|ts|tstart|u|use|v|view|w|write|x|xecute)\b/i,null],["lit",/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?/i],["pln",/^[a-z][^\W_]*/i],["pun",/^[^\w\t\n\r"$%;^\xa0]|_/]]),["mumps"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-mumps.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"]|\\.)*"/,null,'"']],[["com",/^;[^\n\r]*/,null,";"],["dec",/^\$(?:d|device|ec|ecode|es|estack|et|etrap|h|horolog|i|io|j|job|k|key|p|principal|q|quit|st|stack|s|storage|sy|system|t|test|tl|tlevel|tr|trestart|x|y|z[a-z]*|a|ascii|c|char|d|data|e|extract|f|find|fn|fnumber|g|get|j|justify|l|length|na|name|o|order|p|piece|ql|qlength|qs|qsubscript|q|query|r|random|re|reverse|s|select|st|stack|t|text|tr|translate|nan)\b/i, 2 | null],["kwd",/^(?:[^$]b|break|c|close|d|do|e|else|f|for|g|goto|h|halt|h|hang|i|if|j|job|k|kill|l|lock|m|merge|n|new|o|open|q|quit|r|read|s|set|tc|tcommit|tre|trestart|tro|trollback|ts|tstart|u|use|v|view|w|write|x|xecute)\b/i,null],["lit",/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?/i],["pln",/^[a-z][^\W_]*/i],["pun",/^[^\w\t\n\r"$%;^\xa0]|_/]]),["mumps"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-mumps.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"]|\\.)*"/,null,'"']],[["com",/^;[^\n\r]*/,null,";"],["dec",/^\$(?:d|device|ec|ecode|es|estack|et|etrap|h|horolog|i|io|j|job|k|key|p|principal|q|quit|st|stack|s|storage|sy|system|t|test|tl|tlevel|tr|trestart|x|y|z[a-z]*|a|ascii|c|char|d|data|e|extract|f|find|fn|fnumber|g|get|j|justify|l|length|na|name|o|order|p|piece|ql|qlength|qs|qsubscript|q|query|r|random|re|reverse|s|select|st|stack|t|text|tr|translate|nan)\b/i, 2 | null],["kwd",/^(?:[^$]b|break|c|close|d|do|e|else|f|for|g|goto|h|halt|h|hang|i|if|j|job|k|kill|l|lock|m|merge|n|new|o|open|q|quit|r|read|s|set|tc|tcommit|tre|trestart|tro|trollback|ts|tstart|u|use|v|view|w|write|x|xecute)\b/i,null],["lit",/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?/i],["pln",/^[a-z][^\W_]*/i],["pun",/^[^\w\t\n\r"$%;^\xa0]|_/]]),["mumps"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-mumps.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"]|\\.)*"/,null,'"']],[["com",/^;[^\n\r]*/,null,";"],["dec",/^\$(?:d|device|ec|ecode|es|estack|et|etrap|h|horolog|i|io|j|job|k|key|p|principal|q|quit|st|stack|s|storage|sy|system|t|test|tl|tlevel|tr|trestart|x|y|z[a-z]*|a|ascii|c|char|d|data|e|extract|f|find|fn|fnumber|g|get|j|justify|l|length|na|name|o|order|p|piece|ql|qlength|qs|qsubscript|q|query|r|random|re|reverse|s|select|st|stack|t|text|tr|translate|nan)\b/i, 2 | null],["kwd",/^(?:[^$]b|break|c|close|d|do|e|else|f|for|g|goto|h|halt|h|hang|i|if|j|job|k|kill|l|lock|m|merge|n|new|o|open|q|quit|r|read|s|set|tc|tcommit|tre|trestart|tro|trollback|ts|tstart|u|use|v|view|w|write|x|xecute)\b/i,null],["lit",/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?/i],["pln",/^[a-z][^\W_]*/i],["pun",/^[^\w\t\n\r"$%;^\xa0]|_/]]),["mumps"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-scala.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/], 2 | ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-scala.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/], 2 | ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-scala.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/], 2 | ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-scala.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/], 2 | ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-dart.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!.*/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/.*/],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i], 2 | ["typ",/^\b(?:bool|double|dynamic|int|num|object|string|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?'''[\S\s]*?[^\\]'''/],["str",/^r?"""[\S\s]*?[^\\]"""/],["str",/^r?'('|[^\n\f\r]*?[^\\]')/],["str",/^r?"("|[^\n\f\r]*?[^\\]")/],["pln",/^[$_a-z]\w*/i],["pun",/^[!%&*+/:<-?^|~-]/],["lit",/^\b0x[\da-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",/^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(),.;[\]{}]/]]), 3 | ["dart"]); 4 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-dart.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!.*/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/.*/],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i], 2 | ["typ",/^\b(?:bool|double|dynamic|int|num|object|string|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?'''[\S\s]*?[^\\]'''/],["str",/^r?"""[\S\s]*?[^\\]"""/],["str",/^r?'('|[^\n\f\r]*?[^\\]')/],["str",/^r?"("|[^\n\f\r]*?[^\\]")/],["pln",/^[$_a-z]\w*/i],["pun",/^[!%&*+/:<-?^|~-]/],["lit",/^\b0x[\da-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",/^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(),.;[\]{}]/]]), 3 | ["dart"]); 4 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-dart.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!.*/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/.*/],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i], 2 | ["typ",/^\b(?:bool|double|dynamic|int|num|object|string|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?'''[\S\s]*?[^\\]'''/],["str",/^r?"""[\S\s]*?[^\\]"""/],["str",/^r?'('|[^\n\f\r]*?[^\\]')/],["str",/^r?"("|[^\n\f\r]*?[^\\]")/],["pln",/^[$_a-z]\w*/i],["pun",/^[!%&*+/:<-?^|~-]/],["lit",/^\b0x[\da-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",/^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(),.;[\]{}]/]]), 3 | ["dart"]); 4 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-dart.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!.*/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/.*/],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i], 2 | ["typ",/^\b(?:bool|double|dynamic|int|num|object|string|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?'''[\S\s]*?[^\\]'''/],["str",/^r?"""[\S\s]*?[^\\]"""/],["str",/^r?'('|[^\n\f\r]*?[^\\]')/],["str",/^r?"("|[^\n\f\r]*?[^\\]")/],["pln",/^[$_a-z]\w*/i],["pun",/^[!%&*+/:<-?^|~-]/],["lit",/^\b0x[\da-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",/^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(),.;[\]{}]/]]), 3 | ["dart"]); 4 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-apollo.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, 2 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-apollo.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, 2 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-apollo.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, 2 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-apollo.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, 2 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-ml.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], 2 | ["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-ml.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], 2 | ["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-ml.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], 2 | ["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-ml.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], 2 | ["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/path-to-regexp/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /example_full/vendor/path-to-regexp/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /example_inherit/vendor/path-to-regexp/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /example_versioning/vendor/path-to-regexp/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /source/example_versioning/example.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Versioning Example 3 | * 4 | * This is an versioning example for apiDoc. 5 | * Versioning keeps previous defined documentation blocks. That makes it possible to compare a methods version with its predecessor. 6 | * 7 | * Important is to set the version with "@apiVersion". 8 | * 9 | * Documentation blocks without @api (like this block) will be ignored. 10 | */ 11 | 12 | /** 13 | * @api {get} /user/:id Get User information and Date of Registration. 14 | * @apiVersion 0.2.0 15 | * @apiName GetUser 16 | * @apiGroup User 17 | * 18 | * @apiParam {Number} id Users unique ID. 19 | * 20 | * @apiSuccess {String} firstname Firstname of the User. 21 | * @apiSuccess {String} lastname Lastname of the User. 22 | * @apiSuccess {Date} registered Date of Registration. 23 | * 24 | * @apiSuccessExample Success-Response: 25 | * HTTP/1.1 200 OK 26 | * { 27 | * "firstname": "John", 28 | * "lastname": "Doe" 29 | * } 30 | * 31 | * @apiError UserNotFound The id of the User was not found. 32 | * 33 | * @apiErrorExample Error-Response: 34 | * HTTP/1.1 404 Not Found 35 | * { 36 | * "error": "UserNotFound" 37 | * } 38 | */ -------------------------------------------------------------------------------- /example_basic/locales/de.js: -------------------------------------------------------------------------------- 1 | define({ 2 | de: { 3 | 'Allowed values:' : 'Erlaubte Werte:', 4 | 'Compare all with predecessor': 'Vergleiche alle mit ihren Vorgängern', 5 | 'compare changes to:' : 'vergleiche Änderungen mit:', 6 | 'compared to' : 'verglichen mit', 7 | 'Default value:' : 'Standardwert:', 8 | 'Description' : 'Beschreibung', 9 | 'Field' : 'Feld', 10 | 'General' : 'Allgemein', 11 | 'Generated with' : 'Erstellt mit', 12 | 'Name' : 'Name', 13 | 'No response values.' : 'Keine Rückgabewerte.', 14 | 'optional' : 'optional', 15 | 'Parameter' : 'Parameter', 16 | 'Permission:' : 'Berechtigung:', 17 | 'Response' : 'Antwort', 18 | 'Send' : 'Senden', 19 | 'Send a Sample Request' : 'Eine Beispielanfrage senden', 20 | 'show up to version:' : 'zeige bis zur Version:', 21 | 'Size range:' : 'Größenbereich:', 22 | 'Type' : 'Typ', 23 | 'url' : 'url' 24 | } 25 | }); 26 | -------------------------------------------------------------------------------- /example_full/locales/de.js: -------------------------------------------------------------------------------- 1 | define({ 2 | de: { 3 | 'Allowed values:' : 'Erlaubte Werte:', 4 | 'Compare all with predecessor': 'Vergleiche alle mit ihren Vorgängern', 5 | 'compare changes to:' : 'vergleiche Änderungen mit:', 6 | 'compared to' : 'verglichen mit', 7 | 'Default value:' : 'Standardwert:', 8 | 'Description' : 'Beschreibung', 9 | 'Field' : 'Feld', 10 | 'General' : 'Allgemein', 11 | 'Generated with' : 'Erstellt mit', 12 | 'Name' : 'Name', 13 | 'No response values.' : 'Keine Rückgabewerte.', 14 | 'optional' : 'optional', 15 | 'Parameter' : 'Parameter', 16 | 'Permission:' : 'Berechtigung:', 17 | 'Response' : 'Antwort', 18 | 'Send' : 'Senden', 19 | 'Send a Sample Request' : 'Eine Beispielanfrage senden', 20 | 'show up to version:' : 'zeige bis zur Version:', 21 | 'Size range:' : 'Größenbereich:', 22 | 'Type' : 'Typ', 23 | 'url' : 'url' 24 | } 25 | }); 26 | -------------------------------------------------------------------------------- /example_inherit/locales/de.js: -------------------------------------------------------------------------------- 1 | define({ 2 | de: { 3 | 'Allowed values:' : 'Erlaubte Werte:', 4 | 'Compare all with predecessor': 'Vergleiche alle mit ihren Vorgängern', 5 | 'compare changes to:' : 'vergleiche Änderungen mit:', 6 | 'compared to' : 'verglichen mit', 7 | 'Default value:' : 'Standardwert:', 8 | 'Description' : 'Beschreibung', 9 | 'Field' : 'Feld', 10 | 'General' : 'Allgemein', 11 | 'Generated with' : 'Erstellt mit', 12 | 'Name' : 'Name', 13 | 'No response values.' : 'Keine Rückgabewerte.', 14 | 'optional' : 'optional', 15 | 'Parameter' : 'Parameter', 16 | 'Permission:' : 'Berechtigung:', 17 | 'Response' : 'Antwort', 18 | 'Send' : 'Senden', 19 | 'Send a Sample Request' : 'Eine Beispielanfrage senden', 20 | 'show up to version:' : 'zeige bis zur Version:', 21 | 'Size range:' : 'Größenbereich:', 22 | 'Type' : 'Typ', 23 | 'url' : 'url' 24 | } 25 | }); 26 | -------------------------------------------------------------------------------- /example_versioning/locales/de.js: -------------------------------------------------------------------------------- 1 | define({ 2 | de: { 3 | 'Allowed values:' : 'Erlaubte Werte:', 4 | 'Compare all with predecessor': 'Vergleiche alle mit ihren Vorgängern', 5 | 'compare changes to:' : 'vergleiche Änderungen mit:', 6 | 'compared to' : 'verglichen mit', 7 | 'Default value:' : 'Standardwert:', 8 | 'Description' : 'Beschreibung', 9 | 'Field' : 'Feld', 10 | 'General' : 'Allgemein', 11 | 'Generated with' : 'Erstellt mit', 12 | 'Name' : 'Name', 13 | 'No response values.' : 'Keine Rückgabewerte.', 14 | 'optional' : 'optional', 15 | 'Parameter' : 'Parameter', 16 | 'Permission:' : 'Berechtigung:', 17 | 'Response' : 'Antwort', 18 | 'Send' : 'Senden', 19 | 'Send a Sample Request' : 'Eine Beispielanfrage senden', 20 | 'show up to version:' : 'zeige bis zur Version:', 21 | 'Size range:' : 'Größenbereich:', 22 | 'Type' : 'Typ', 23 | 'url' : 'url' 24 | } 25 | }); 26 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-n.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/, 3 | a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, 4 | a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]); 5 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-n.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/, 3 | a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, 4 | a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]); 5 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-n.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/, 3 | a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, 4 | a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]); 5 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-n.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/, 3 | a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, 4 | a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]); 5 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-vhdl.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[box]?"(?:[^"]|"")*"|'.')/i],["com",/^--[^\n\r]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, 2 | null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^'(?:active|ascending|base|delayed|driving|driving_value|event|high|image|instance_name|last_active|last_event|last_value|left|leftof|length|low|path_name|pos|pred|quiet|range|reverse_range|right|rightof|simple_name|stable|succ|transaction|val|value)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w.\\]+#(?:[+-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:e[+-]?\d+(?:_\d+)*)?)/i], 3 | ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'\xa0-]*/]]),["vhdl","vhd"]); 4 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-vhdl.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[box]?"(?:[^"]|"")*"|'.')/i],["com",/^--[^\n\r]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, 2 | null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^'(?:active|ascending|base|delayed|driving|driving_value|event|high|image|instance_name|last_active|last_event|last_value|left|leftof|length|low|path_name|pos|pred|quiet|range|reverse_range|right|rightof|simple_name|stable|succ|transaction|val|value)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w.\\]+#(?:[+-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:e[+-]?\d+(?:_\d+)*)?)/i], 3 | ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'\xa0-]*/]]),["vhdl","vhd"]); 4 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-vhdl.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[box]?"(?:[^"]|"")*"|'.')/i],["com",/^--[^\n\r]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, 2 | null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^'(?:active|ascending|base|delayed|driving|driving_value|event|high|image|instance_name|last_active|last_event|last_value|left|leftof|length|low|path_name|pos|pred|quiet|range|reverse_range|right|rightof|simple_name|stable|succ|transaction|val|value)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w.\\]+#(?:[+-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:e[+-]?\d+(?:_\d+)*)?)/i], 3 | ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'\xa0-]*/]]),["vhdl","vhd"]); 4 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-vhdl.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[box]?"(?:[^"]|"")*"|'.')/i],["com",/^--[^\n\r]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, 2 | null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^'(?:active|ascending|base|delayed|driving|driving_value|event|high|image|instance_name|last_active|last_event|last_value|left|leftof|length|low|path_name|pos|pred|quiet|range|reverse_range|right|rightof|simple_name|stable|succ|transaction|val|value)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w.\\]+#(?:[+-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:e[+-]?\d+(?:_\d+)*)?)/i], 3 | ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'\xa0-]*/]]),["vhdl","vhd"]); 4 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-clj.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 Google Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | var a=null; 17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a], 18 | ["typ",/^:[\dA-Za-z-]+/]]),["clj"]); 19 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-clj.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 Google Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | var a=null; 17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a], 18 | ["typ",/^:[\dA-Za-z-]+/]]),["clj"]); 19 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-clj.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 Google Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | var a=null; 17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a], 18 | ["typ",/^:[\dA-Za-z-]+/]]),["clj"]); 19 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-clj.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 Google Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | var a=null; 17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a], 18 | ["typ",/^:[\dA-Za-z-]+/]]),["clj"]); 19 | -------------------------------------------------------------------------------- /source/example_inherit/example.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Inherit Example 3 | * 4 | * This is an inherit example for apiDoc. 5 | * Define parts of your documentation that shall be used many times. 6 | * 7 | * In this case a block named "UserNotFoundError" is defined with "@apiDefine". 8 | * That block could be used many times with "@apiUse UserNotFoundError". 9 | * 10 | * Documentation blocks without @api (like this block) will be ignored. 11 | */ 12 | 13 | /** 14 | * @apiDefine UserNotFoundError 15 | * 16 | * @apiError UserNotFound The id of the User was not found. 17 | * 18 | * @apiErrorExample Error-Response: 19 | * HTTP/1.1 404 Not Found 20 | * { 21 | * "error": "UserNotFound" 22 | * } 23 | */ 24 | 25 | /** 26 | * @api {get} /user/:id Get User information 27 | * @apiName GetUser 28 | * @apiGroup User 29 | * 30 | * @apiParam {Number} id Users unique ID. 31 | * 32 | * @apiSuccess {String} firstname Firstname of the User. 33 | * @apiSuccess {String} lastname Lastname of the User. 34 | * 35 | * @apiSuccessExample Success-Response: 36 | * HTTP/1.1 200 OK 37 | * { 38 | * "firstname": "John", 39 | * "lastname": "Doe" 40 | * } 41 | * 42 | * @apiUse UserNotFoundError 43 | */ 44 | 45 | /** 46 | * @api {put} /user/ Modify User information 47 | * @apiName PutUser 48 | * @apiGroup User 49 | * 50 | * @apiParam {Number} id Users unique ID. 51 | * @apiParam {String} [firstname] Firstname of the User. 52 | * @apiParam {String} [lastname] Lastname of the User. 53 | * 54 | * @apiSuccessExample Success-Response: 55 | * HTTP/1.1 200 OK 56 | * 57 | * @apiUse UserNotFoundError 58 | */ 59 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-vb.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})(?:["\u201c\u201d]c|$)|["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})*(?:["\u201c\u201d]|$))/i,null,'"\u201c\u201d'],["com",/^['\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\n\r_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:addhandler|addressof|alias|and|andalso|ansi|as|assembly|auto|boolean|byref|byte|byval|call|case|catch|cbool|cbyte|cchar|cdate|cdbl|cdec|char|cint|class|clng|cobj|const|cshort|csng|cstr|ctype|date|decimal|declare|default|delegate|dim|directcast|do|double|each|else|elseif|end|endif|enum|erase|error|event|exit|finally|for|friend|function|get|gettype|gosub|goto|handles|if|implements|imports|in|inherits|integer|interface|is|let|lib|like|long|loop|me|mod|module|mustinherit|mustoverride|mybase|myclass|namespace|new|next|not|notinheritable|notoverridable|object|on|option|optional|or|orelse|overloads|overridable|overrides|paramarray|preserve|private|property|protected|public|raiseevent|readonly|redim|removehandler|resume|return|select|set|shadows|shared|short|single|static|step|stop|string|structure|sub|synclock|then|throw|to|try|typeof|unicode|until|variant|wend|when|while|with|withevents|writeonly|xor|endif|gosub|let|variant|wend)\b/i, 2 | null],["com",/^rem\b.*/i],["lit",/^(?:true\b|false\b|nothing\b|\d+(?:e[+-]?\d+[dfr]?|[dfilrs])?|(?:&h[\da-f]+|&o[0-7]+)[ils]?|\d*\.\d+(?:e[+-]?\d+)?[dfr]?|#\s+(?:\d+[/-]\d+[/-]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:am|pm))?)?|\d+:\d+(?::\d+)?(\s*(?:am|pm))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[!#%&@]+])?|\[(?:[a-z]|_\w)\w*])/i],["pun",/^[^\w\t\n\r "'[\]\xa0\u2018\u2019\u201c\u201d\u2028\u2029]+/],["pun",/^(?:\[|])/]]),["vb","vbs"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-vb.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})(?:["\u201c\u201d]c|$)|["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})*(?:["\u201c\u201d]|$))/i,null,'"\u201c\u201d'],["com",/^['\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\n\r_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:addhandler|addressof|alias|and|andalso|ansi|as|assembly|auto|boolean|byref|byte|byval|call|case|catch|cbool|cbyte|cchar|cdate|cdbl|cdec|char|cint|class|clng|cobj|const|cshort|csng|cstr|ctype|date|decimal|declare|default|delegate|dim|directcast|do|double|each|else|elseif|end|endif|enum|erase|error|event|exit|finally|for|friend|function|get|gettype|gosub|goto|handles|if|implements|imports|in|inherits|integer|interface|is|let|lib|like|long|loop|me|mod|module|mustinherit|mustoverride|mybase|myclass|namespace|new|next|not|notinheritable|notoverridable|object|on|option|optional|or|orelse|overloads|overridable|overrides|paramarray|preserve|private|property|protected|public|raiseevent|readonly|redim|removehandler|resume|return|select|set|shadows|shared|short|single|static|step|stop|string|structure|sub|synclock|then|throw|to|try|typeof|unicode|until|variant|wend|when|while|with|withevents|writeonly|xor|endif|gosub|let|variant|wend)\b/i, 2 | null],["com",/^rem\b.*/i],["lit",/^(?:true\b|false\b|nothing\b|\d+(?:e[+-]?\d+[dfr]?|[dfilrs])?|(?:&h[\da-f]+|&o[0-7]+)[ils]?|\d*\.\d+(?:e[+-]?\d+)?[dfr]?|#\s+(?:\d+[/-]\d+[/-]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:am|pm))?)?|\d+:\d+(?::\d+)?(\s*(?:am|pm))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[!#%&@]+])?|\[(?:[a-z]|_\w)\w*])/i],["pun",/^[^\w\t\n\r "'[\]\xa0\u2018\u2019\u201c\u201d\u2028\u2029]+/],["pun",/^(?:\[|])/]]),["vb","vbs"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-vb.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})(?:["\u201c\u201d]c|$)|["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})*(?:["\u201c\u201d]|$))/i,null,'"\u201c\u201d'],["com",/^['\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\n\r_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:addhandler|addressof|alias|and|andalso|ansi|as|assembly|auto|boolean|byref|byte|byval|call|case|catch|cbool|cbyte|cchar|cdate|cdbl|cdec|char|cint|class|clng|cobj|const|cshort|csng|cstr|ctype|date|decimal|declare|default|delegate|dim|directcast|do|double|each|else|elseif|end|endif|enum|erase|error|event|exit|finally|for|friend|function|get|gettype|gosub|goto|handles|if|implements|imports|in|inherits|integer|interface|is|let|lib|like|long|loop|me|mod|module|mustinherit|mustoverride|mybase|myclass|namespace|new|next|not|notinheritable|notoverridable|object|on|option|optional|or|orelse|overloads|overridable|overrides|paramarray|preserve|private|property|protected|public|raiseevent|readonly|redim|removehandler|resume|return|select|set|shadows|shared|short|single|static|step|stop|string|structure|sub|synclock|then|throw|to|try|typeof|unicode|until|variant|wend|when|while|with|withevents|writeonly|xor|endif|gosub|let|variant|wend)\b/i, 2 | null],["com",/^rem\b.*/i],["lit",/^(?:true\b|false\b|nothing\b|\d+(?:e[+-]?\d+[dfr]?|[dfilrs])?|(?:&h[\da-f]+|&o[0-7]+)[ils]?|\d*\.\d+(?:e[+-]?\d+)?[dfr]?|#\s+(?:\d+[/-]\d+[/-]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:am|pm))?)?|\d+:\d+(?::\d+)?(\s*(?:am|pm))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[!#%&@]+])?|\[(?:[a-z]|_\w)\w*])/i],["pun",/^[^\w\t\n\r "'[\]\xa0\u2018\u2019\u201c\u201d\u2028\u2029]+/],["pun",/^(?:\[|])/]]),["vb","vbs"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-vb.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})(?:["\u201c\u201d]c|$)|["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})*(?:["\u201c\u201d]|$))/i,null,'"\u201c\u201d'],["com",/^['\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\n\r_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:addhandler|addressof|alias|and|andalso|ansi|as|assembly|auto|boolean|byref|byte|byval|call|case|catch|cbool|cbyte|cchar|cdate|cdbl|cdec|char|cint|class|clng|cobj|const|cshort|csng|cstr|ctype|date|decimal|declare|default|delegate|dim|directcast|do|double|each|else|elseif|end|endif|enum|erase|error|event|exit|finally|for|friend|function|get|gettype|gosub|goto|handles|if|implements|imports|in|inherits|integer|interface|is|let|lib|like|long|loop|me|mod|module|mustinherit|mustoverride|mybase|myclass|namespace|new|next|not|notinheritable|notoverridable|object|on|option|optional|or|orelse|overloads|overridable|overrides|paramarray|preserve|private|property|protected|public|raiseevent|readonly|redim|removehandler|resume|return|select|set|shadows|shared|short|single|static|step|stop|string|structure|sub|synclock|then|throw|to|try|typeof|unicode|until|variant|wend|when|while|with|withevents|writeonly|xor|endif|gosub|let|variant|wend)\b/i, 2 | null],["com",/^rem\b.*/i],["lit",/^(?:true\b|false\b|nothing\b|\d+(?:e[+-]?\d+[dfr]?|[dfilrs])?|(?:&h[\da-f]+|&o[0-7]+)[ils]?|\d*\.\d+(?:e[+-]?\d+)?[dfr]?|#\s+(?:\d+[/-]\d+[/-]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:am|pm))?)?|\d+:\d+(?::\d+)?(\s*(?:am|pm))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[!#%&@]+])?|\[(?:[a-z]|_\w)\w*])/i],["pun",/^[^\w\t\n\r "'[\]\xa0\u2018\u2019\u201c\u201d\u2028\u2029]+/],["pun",/^(?:\[|])/]]),["vb","vbs"]); 3 | -------------------------------------------------------------------------------- /example_basic/vendor/prettify/lang-sql.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|apply|as|asc|authorization|backup|begin|between|break|browse|bulk|by|cascade|case|check|checkpoint|close|clustered|coalesce|collate|column|commit|compute|connect|constraint|contains|containstable|continue|convert|create|cross|current|current_date|current_time|current_timestamp|current_user|cursor|database|dbcc|deallocate|declare|default|delete|deny|desc|disk|distinct|distributed|double|drop|dummy|dump|else|end|errlvl|escape|except|exec|execute|exists|exit|fetch|file|fillfactor|following|for|foreign|freetext|freetexttable|from|full|function|goto|grant|group|having|holdlock|identity|identitycol|identity_insert|if|in|index|inner|insert|intersect|into|is|join|key|kill|left|like|lineno|load|match|matched|merge|natural|national|nocheck|nonclustered|nocycle|not|null|nullif|of|off|offsets|on|open|opendatasource|openquery|openrowset|openxml|option|or|order|outer|over|partition|percent|pivot|plan|preceding|precision|primary|print|proc|procedure|public|raiserror|read|readtext|reconfigure|references|replication|restore|restrict|return|revoke|right|rollback|rowcount|rowguidcol|rows?|rule|save|schema|select|session_user|set|setuser|shutdown|some|start|statistics|system_user|table|textsize|then|to|top|tran|transaction|trigger|truncate|tsequal|unbounded|union|unique|unpivot|update|updatetext|use|user|using|values|varying|view|waitfor|when|where|while|with|within|writetext|xml)(?=[^\w-]|$)/i, 2 | null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^[_a-z][\w-]*/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'+\xa0-]*/]]),["sql"]); 3 | -------------------------------------------------------------------------------- /example_full/vendor/prettify/lang-sql.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|apply|as|asc|authorization|backup|begin|between|break|browse|bulk|by|cascade|case|check|checkpoint|close|clustered|coalesce|collate|column|commit|compute|connect|constraint|contains|containstable|continue|convert|create|cross|current|current_date|current_time|current_timestamp|current_user|cursor|database|dbcc|deallocate|declare|default|delete|deny|desc|disk|distinct|distributed|double|drop|dummy|dump|else|end|errlvl|escape|except|exec|execute|exists|exit|fetch|file|fillfactor|following|for|foreign|freetext|freetexttable|from|full|function|goto|grant|group|having|holdlock|identity|identitycol|identity_insert|if|in|index|inner|insert|intersect|into|is|join|key|kill|left|like|lineno|load|match|matched|merge|natural|national|nocheck|nonclustered|nocycle|not|null|nullif|of|off|offsets|on|open|opendatasource|openquery|openrowset|openxml|option|or|order|outer|over|partition|percent|pivot|plan|preceding|precision|primary|print|proc|procedure|public|raiserror|read|readtext|reconfigure|references|replication|restore|restrict|return|revoke|right|rollback|rowcount|rowguidcol|rows?|rule|save|schema|select|session_user|set|setuser|shutdown|some|start|statistics|system_user|table|textsize|then|to|top|tran|transaction|trigger|truncate|tsequal|unbounded|union|unique|unpivot|update|updatetext|use|user|using|values|varying|view|waitfor|when|where|while|with|within|writetext|xml)(?=[^\w-]|$)/i, 2 | null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^[_a-z][\w-]*/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'+\xa0-]*/]]),["sql"]); 3 | -------------------------------------------------------------------------------- /example_inherit/vendor/prettify/lang-sql.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|apply|as|asc|authorization|backup|begin|between|break|browse|bulk|by|cascade|case|check|checkpoint|close|clustered|coalesce|collate|column|commit|compute|connect|constraint|contains|containstable|continue|convert|create|cross|current|current_date|current_time|current_timestamp|current_user|cursor|database|dbcc|deallocate|declare|default|delete|deny|desc|disk|distinct|distributed|double|drop|dummy|dump|else|end|errlvl|escape|except|exec|execute|exists|exit|fetch|file|fillfactor|following|for|foreign|freetext|freetexttable|from|full|function|goto|grant|group|having|holdlock|identity|identitycol|identity_insert|if|in|index|inner|insert|intersect|into|is|join|key|kill|left|like|lineno|load|match|matched|merge|natural|national|nocheck|nonclustered|nocycle|not|null|nullif|of|off|offsets|on|open|opendatasource|openquery|openrowset|openxml|option|or|order|outer|over|partition|percent|pivot|plan|preceding|precision|primary|print|proc|procedure|public|raiserror|read|readtext|reconfigure|references|replication|restore|restrict|return|revoke|right|rollback|rowcount|rowguidcol|rows?|rule|save|schema|select|session_user|set|setuser|shutdown|some|start|statistics|system_user|table|textsize|then|to|top|tran|transaction|trigger|truncate|tsequal|unbounded|union|unique|unpivot|update|updatetext|use|user|using|values|varying|view|waitfor|when|where|while|with|within|writetext|xml)(?=[^\w-]|$)/i, 2 | null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^[_a-z][\w-]*/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'+\xa0-]*/]]),["sql"]); 3 | -------------------------------------------------------------------------------- /example_versioning/vendor/prettify/lang-sql.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|apply|as|asc|authorization|backup|begin|between|break|browse|bulk|by|cascade|case|check|checkpoint|close|clustered|coalesce|collate|column|commit|compute|connect|constraint|contains|containstable|continue|convert|create|cross|current|current_date|current_time|current_timestamp|current_user|cursor|database|dbcc|deallocate|declare|default|delete|deny|desc|disk|distinct|distributed|double|drop|dummy|dump|else|end|errlvl|escape|except|exec|execute|exists|exit|fetch|file|fillfactor|following|for|foreign|freetext|freetexttable|from|full|function|goto|grant|group|having|holdlock|identity|identitycol|identity_insert|if|in|index|inner|insert|intersect|into|is|join|key|kill|left|like|lineno|load|match|matched|merge|natural|national|nocheck|nonclustered|nocycle|not|null|nullif|of|off|offsets|on|open|opendatasource|openquery|openrowset|openxml|option|or|order|outer|over|partition|percent|pivot|plan|preceding|precision|primary|print|proc|procedure|public|raiserror|read|readtext|reconfigure|references|replication|restore|restrict|return|revoke|right|rollback|rowcount|rowguidcol|rows?|rule|save|schema|select|session_user|set|setuser|shutdown|some|start|statistics|system_user|table|textsize|then|to|top|tran|transaction|trigger|truncate|tsequal|unbounded|union|unique|unpivot|update|updatetext|use|user|using|values|varying|view|waitfor|when|where|while|with|within|writetext|xml)(?=[^\w-]|$)/i, 2 | null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^[_a-z][\w-]*/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'+\xa0-]*/]]),["sql"]); 3 | -------------------------------------------------------------------------------- /example_full/api_project.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "apidoc-example", 3 | "version": "0.3.0", 4 | "description": "apiDoc example project", 5 | "title": "Custom apiDoc browser title", 6 | "template": { 7 | "withCompare": true, 8 | "withGenerator": true 9 | }, 10 | "url": "https://api.github.com/v1", 11 | "header": { 12 | "title": "My own header title", 13 | "content": "

Example text from header.md

\n

This text is from file "header.md".

\n

HowTo include

\n

In your projects "package.json" you can set "apidoc.header" with a title and a filename to include this file into your documentation.

\n

This example attempts to integrate "header.md" and "footer.md".

\n
{\n  "name": "example",\n  "version": "0.3.0",\n  "description": "apidoc example project.",\n  "apidoc": {\n    "header": {\n      "title": "My own header title",\n      "filename": "header.md"\n    },\n    "footer": {\n      "title": "My own footer title",\n      "filename": "footert.md"\n    }\n  }\n}\n
" 14 | }, 15 | "footer": { 16 | "title": "My own footer title", 17 | "content": "

Example text from footer.md

\n

This text is from file "footer.md".

\n

HowTo include

\n

Watch header.md for further information.

\n" 18 | }, 19 | "order": [ 20 | "GetUser", 21 | "PostUser" 22 | ], 23 | "generator": { 24 | "version": "0.9.0", 25 | "time": "2014-11-28T14:54:41.801Z" 26 | }, 27 | "apidoc": "0.2.0" 28 | } -------------------------------------------------------------------------------- /example_full/api_project.js: -------------------------------------------------------------------------------- 1 | define({ 2 | "name": "apidoc-example", 3 | "version": "0.3.0", 4 | "description": "apiDoc example project", 5 | "title": "Custom apiDoc browser title", 6 | "template": { 7 | "withCompare": true, 8 | "withGenerator": true 9 | }, 10 | "url": "https://api.github.com/v1", 11 | "header": { 12 | "title": "My own header title", 13 | "content": "

Example text from header.md

\n

This text is from file "header.md".

\n

HowTo include

\n

In your projects "package.json" you can set "apidoc.header" with a title and a filename to include this file into your documentation.

\n

This example attempts to integrate "header.md" and "footer.md".

\n
{\n  "name": "example",\n  "version": "0.3.0",\n  "description": "apidoc example project.",\n  "apidoc": {\n    "header": {\n      "title": "My own header title",\n      "filename": "header.md"\n    },\n    "footer": {\n      "title": "My own footer title",\n      "filename": "footert.md"\n    }\n  }\n}\n
" 14 | }, 15 | "footer": { 16 | "title": "My own footer title", 17 | "content": "

Example text from footer.md

\n

This text is from file "footer.md".

\n

HowTo include

\n

Watch header.md for further information.

\n" 18 | }, 19 | "order": [ 20 | "GetUser", 21 | "PostUser" 22 | ], 23 | "generator": { 24 | "version": "0.9.0", 25 | "time": "2014-11-28T14:54:41.801Z" 26 | }, 27 | "apidoc": "0.2.0" 28 | }); -------------------------------------------------------------------------------- /example_basic/vendor/prettify.css: -------------------------------------------------------------------------------- 1 | /* Pretty printing styles. Used with prettify.js. */ 2 | /* Vim sunburst theme by David Leibovic */ 3 | pre .str { 4 | color: #65B042; 5 | } 6 | /* string - green */ 7 | pre .kwd { 8 | color: #E28964; 9 | } 10 | /* keyword - dark pink */ 11 | pre .com { 12 | color: #AEAEAE; 13 | font-style: italic; 14 | } 15 | /* comment - gray */ 16 | pre .typ { 17 | color: #89bdff; 18 | } 19 | /* type - light blue */ 20 | pre .lit { 21 | color: #3387CC; 22 | } 23 | /* literal - blue */ 24 | pre .pun { 25 | color: #fff; 26 | } 27 | /* punctuation - white */ 28 | pre .pln { 29 | color: #fff; 30 | } 31 | /* plaintext - white */ 32 | pre .tag { 33 | color: #89bdff; 34 | } 35 | /* html/xml tag - light blue */ 36 | pre .atn { 37 | color: #bdb76b; 38 | } 39 | /* html/xml attribute name - khaki */ 40 | pre .atv { 41 | color: #65B042; 42 | } 43 | /* html/xml attribute value - green */ 44 | pre .dec { 45 | color: #3387CC; 46 | } 47 | /* decimal - blue */ 48 | /* Specify class=linenums on a pre to get line numbering */ 49 | ol.linenums { 50 | margin-top: 0; 51 | margin-bottom: 0; 52 | color: #AEAEAE; 53 | } 54 | /* IE indents via margin-left */ 55 | li.L0, 56 | li.L1, 57 | li.L2, 58 | li.L3, 59 | li.L5, 60 | li.L6, 61 | li.L7, 62 | li.L8 { 63 | list-style-type: none; 64 | } 65 | /* Alternate shading for lines */ 66 | @media print { 67 | pre .str { 68 | color: #060; 69 | } 70 | pre .kwd { 71 | color: #006; 72 | font-weight: bold; 73 | } 74 | pre .com { 75 | color: #600; 76 | font-style: italic; 77 | } 78 | pre .typ { 79 | color: #404; 80 | font-weight: bold; 81 | } 82 | pre .lit { 83 | color: #044; 84 | } 85 | pre .pun { 86 | color: #440; 87 | } 88 | pre .pln { 89 | color: #000; 90 | } 91 | pre .tag { 92 | color: #006; 93 | font-weight: bold; 94 | } 95 | pre .atn { 96 | color: #404; 97 | } 98 | pre .atv { 99 | color: #060; 100 | } 101 | } -------------------------------------------------------------------------------- /example_full/vendor/prettify.css: -------------------------------------------------------------------------------- 1 | /* Pretty printing styles. Used with prettify.js. */ 2 | /* Vim sunburst theme by David Leibovic */ 3 | pre .str { 4 | color: #65B042; 5 | } 6 | /* string - green */ 7 | pre .kwd { 8 | color: #E28964; 9 | } 10 | /* keyword - dark pink */ 11 | pre .com { 12 | color: #AEAEAE; 13 | font-style: italic; 14 | } 15 | /* comment - gray */ 16 | pre .typ { 17 | color: #89bdff; 18 | } 19 | /* type - light blue */ 20 | pre .lit { 21 | color: #3387CC; 22 | } 23 | /* literal - blue */ 24 | pre .pun { 25 | color: #fff; 26 | } 27 | /* punctuation - white */ 28 | pre .pln { 29 | color: #fff; 30 | } 31 | /* plaintext - white */ 32 | pre .tag { 33 | color: #89bdff; 34 | } 35 | /* html/xml tag - light blue */ 36 | pre .atn { 37 | color: #bdb76b; 38 | } 39 | /* html/xml attribute name - khaki */ 40 | pre .atv { 41 | color: #65B042; 42 | } 43 | /* html/xml attribute value - green */ 44 | pre .dec { 45 | color: #3387CC; 46 | } 47 | /* decimal - blue */ 48 | /* Specify class=linenums on a pre to get line numbering */ 49 | ol.linenums { 50 | margin-top: 0; 51 | margin-bottom: 0; 52 | color: #AEAEAE; 53 | } 54 | /* IE indents via margin-left */ 55 | li.L0, 56 | li.L1, 57 | li.L2, 58 | li.L3, 59 | li.L5, 60 | li.L6, 61 | li.L7, 62 | li.L8 { 63 | list-style-type: none; 64 | } 65 | /* Alternate shading for lines */ 66 | @media print { 67 | pre .str { 68 | color: #060; 69 | } 70 | pre .kwd { 71 | color: #006; 72 | font-weight: bold; 73 | } 74 | pre .com { 75 | color: #600; 76 | font-style: italic; 77 | } 78 | pre .typ { 79 | color: #404; 80 | font-weight: bold; 81 | } 82 | pre .lit { 83 | color: #044; 84 | } 85 | pre .pun { 86 | color: #440; 87 | } 88 | pre .pln { 89 | color: #000; 90 | } 91 | pre .tag { 92 | color: #006; 93 | font-weight: bold; 94 | } 95 | pre .atn { 96 | color: #404; 97 | } 98 | pre .atv { 99 | color: #060; 100 | } 101 | } -------------------------------------------------------------------------------- /example_inherit/vendor/prettify.css: -------------------------------------------------------------------------------- 1 | /* Pretty printing styles. Used with prettify.js. */ 2 | /* Vim sunburst theme by David Leibovic */ 3 | pre .str { 4 | color: #65B042; 5 | } 6 | /* string - green */ 7 | pre .kwd { 8 | color: #E28964; 9 | } 10 | /* keyword - dark pink */ 11 | pre .com { 12 | color: #AEAEAE; 13 | font-style: italic; 14 | } 15 | /* comment - gray */ 16 | pre .typ { 17 | color: #89bdff; 18 | } 19 | /* type - light blue */ 20 | pre .lit { 21 | color: #3387CC; 22 | } 23 | /* literal - blue */ 24 | pre .pun { 25 | color: #fff; 26 | } 27 | /* punctuation - white */ 28 | pre .pln { 29 | color: #fff; 30 | } 31 | /* plaintext - white */ 32 | pre .tag { 33 | color: #89bdff; 34 | } 35 | /* html/xml tag - light blue */ 36 | pre .atn { 37 | color: #bdb76b; 38 | } 39 | /* html/xml attribute name - khaki */ 40 | pre .atv { 41 | color: #65B042; 42 | } 43 | /* html/xml attribute value - green */ 44 | pre .dec { 45 | color: #3387CC; 46 | } 47 | /* decimal - blue */ 48 | /* Specify class=linenums on a pre to get line numbering */ 49 | ol.linenums { 50 | margin-top: 0; 51 | margin-bottom: 0; 52 | color: #AEAEAE; 53 | } 54 | /* IE indents via margin-left */ 55 | li.L0, 56 | li.L1, 57 | li.L2, 58 | li.L3, 59 | li.L5, 60 | li.L6, 61 | li.L7, 62 | li.L8 { 63 | list-style-type: none; 64 | } 65 | /* Alternate shading for lines */ 66 | @media print { 67 | pre .str { 68 | color: #060; 69 | } 70 | pre .kwd { 71 | color: #006; 72 | font-weight: bold; 73 | } 74 | pre .com { 75 | color: #600; 76 | font-style: italic; 77 | } 78 | pre .typ { 79 | color: #404; 80 | font-weight: bold; 81 | } 82 | pre .lit { 83 | color: #044; 84 | } 85 | pre .pun { 86 | color: #440; 87 | } 88 | pre .pln { 89 | color: #000; 90 | } 91 | pre .tag { 92 | color: #006; 93 | font-weight: bold; 94 | } 95 | pre .atn { 96 | color: #404; 97 | } 98 | pre .atv { 99 | color: #060; 100 | } 101 | } -------------------------------------------------------------------------------- /example_versioning/vendor/prettify.css: -------------------------------------------------------------------------------- 1 | /* Pretty printing styles. Used with prettify.js. */ 2 | /* Vim sunburst theme by David Leibovic */ 3 | pre .str { 4 | color: #65B042; 5 | } 6 | /* string - green */ 7 | pre .kwd { 8 | color: #E28964; 9 | } 10 | /* keyword - dark pink */ 11 | pre .com { 12 | color: #AEAEAE; 13 | font-style: italic; 14 | } 15 | /* comment - gray */ 16 | pre .typ { 17 | color: #89bdff; 18 | } 19 | /* type - light blue */ 20 | pre .lit { 21 | color: #3387CC; 22 | } 23 | /* literal - blue */ 24 | pre .pun { 25 | color: #fff; 26 | } 27 | /* punctuation - white */ 28 | pre .pln { 29 | color: #fff; 30 | } 31 | /* plaintext - white */ 32 | pre .tag { 33 | color: #89bdff; 34 | } 35 | /* html/xml tag - light blue */ 36 | pre .atn { 37 | color: #bdb76b; 38 | } 39 | /* html/xml attribute name - khaki */ 40 | pre .atv { 41 | color: #65B042; 42 | } 43 | /* html/xml attribute value - green */ 44 | pre .dec { 45 | color: #3387CC; 46 | } 47 | /* decimal - blue */ 48 | /* Specify class=linenums on a pre to get line numbering */ 49 | ol.linenums { 50 | margin-top: 0; 51 | margin-bottom: 0; 52 | color: #AEAEAE; 53 | } 54 | /* IE indents via margin-left */ 55 | li.L0, 56 | li.L1, 57 | li.L2, 58 | li.L3, 59 | li.L5, 60 | li.L6, 61 | li.L7, 62 | li.L8 { 63 | list-style-type: none; 64 | } 65 | /* Alternate shading for lines */ 66 | @media print { 67 | pre .str { 68 | color: #060; 69 | } 70 | pre .kwd { 71 | color: #006; 72 | font-weight: bold; 73 | } 74 | pre .com { 75 | color: #600; 76 | font-style: italic; 77 | } 78 | pre .typ { 79 | color: #404; 80 | font-weight: bold; 81 | } 82 | pre .lit { 83 | color: #044; 84 | } 85 | pre .pun { 86 | color: #440; 87 | } 88 | pre .pln { 89 | color: #000; 90 | } 91 | pre .tag { 92 | color: #006; 93 | font-weight: bold; 94 | } 95 | pre .atn { 96 | color: #404; 97 | } 98 | pre .atv { 99 | color: #060; 100 | } 101 | } -------------------------------------------------------------------------------- /example_basic/api_data.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "type": "get", 4 | "url": "/user/:id", 5 | "title": "Get User information", 6 | "name": "GetUser", 7 | "group": "User", 8 | "parameter": { 9 | "fields": { 10 | "Parameter": [ 11 | { 12 | "group": "Parameter", 13 | "type": "Number", 14 | "optional": false, 15 | "field": "id", 16 | "description": "

Users unique ID.

" 17 | } 18 | ] 19 | } 20 | }, 21 | "success": { 22 | "fields": { 23 | "Success 200": [ 24 | { 25 | "group": "Success 200", 26 | "type": "String", 27 | "optional": false, 28 | "field": "firstname", 29 | "description": "

Firstname of the User.

" 30 | }, 31 | { 32 | "group": "Success 200", 33 | "type": "String", 34 | "optional": false, 35 | "field": "lastname", 36 | "description": "

Lastname of the User.

" 37 | } 38 | ] 39 | }, 40 | "examples": [ 41 | { 42 | "title": "Success-Response:", 43 | "content": " HTTP/1.1 200 OK\n {\n \"firstname\": \"John\",\n \"lastname\": \"Doe\"\n }", 44 | "type": "json" 45 | } 46 | ] 47 | }, 48 | "error": { 49 | "fields": { 50 | "Error 4xx": [ 51 | { 52 | "group": "Error 4xx", 53 | "optional": false, 54 | "field": "UserNotFound", 55 | "description": "

The id of the User was not found.

" 56 | } 57 | ] 58 | }, 59 | "examples": [ 60 | { 61 | "title": "Error-Response:", 62 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 63 | "type": "json" 64 | } 65 | ] 66 | }, 67 | "version": "0.0.0", 68 | "filename": "source/example_basic/example.js", 69 | "groupTitle": "User" 70 | } 71 | ] -------------------------------------------------------------------------------- /example_basic/api_data.js: -------------------------------------------------------------------------------- 1 | define({ "api": [ 2 | { 3 | "type": "get", 4 | "url": "/user/:id", 5 | "title": "Get User information", 6 | "name": "GetUser", 7 | "group": "User", 8 | "parameter": { 9 | "fields": { 10 | "Parameter": [ 11 | { 12 | "group": "Parameter", 13 | "type": "Number", 14 | "optional": false, 15 | "field": "id", 16 | "description": "

Users unique ID.

" 17 | } 18 | ] 19 | } 20 | }, 21 | "success": { 22 | "fields": { 23 | "Success 200": [ 24 | { 25 | "group": "Success 200", 26 | "type": "String", 27 | "optional": false, 28 | "field": "firstname", 29 | "description": "

Firstname of the User.

" 30 | }, 31 | { 32 | "group": "Success 200", 33 | "type": "String", 34 | "optional": false, 35 | "field": "lastname", 36 | "description": "

Lastname of the User.

" 37 | } 38 | ] 39 | }, 40 | "examples": [ 41 | { 42 | "title": "Success-Response:", 43 | "content": " HTTP/1.1 200 OK\n {\n \"firstname\": \"John\",\n \"lastname\": \"Doe\"\n }", 44 | "type": "json" 45 | } 46 | ] 47 | }, 48 | "error": { 49 | "fields": { 50 | "Error 4xx": [ 51 | { 52 | "group": "Error 4xx", 53 | "optional": false, 54 | "field": "UserNotFound", 55 | "description": "

The id of the User was not found.

" 56 | } 57 | ] 58 | }, 59 | "examples": [ 60 | { 61 | "title": "Error-Response:", 62 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 63 | "type": "json" 64 | } 65 | ] 66 | }, 67 | "version": "0.0.0", 68 | "filename": "source/example_basic/example.js", 69 | "groupTitle": "User" 70 | } 71 | ] }); -------------------------------------------------------------------------------- /example/assets/prism.css: -------------------------------------------------------------------------------- 1 | /** 2 | * prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML 3 | * Based on https://github.com/chriskempson/tomorrow-theme 4 | * @author Rose Pritchard 5 | */ 6 | 7 | code[class*="language-"], 8 | pre[class*="language-"] { 9 | color: #ccc; 10 | background: none; 11 | font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; 12 | font-size: 1em; 13 | text-align: left; 14 | white-space: pre; 15 | word-spacing: normal; 16 | word-break: normal; 17 | word-wrap: normal; 18 | line-height: 1.5; 19 | 20 | -moz-tab-size: 4; 21 | -o-tab-size: 4; 22 | tab-size: 4; 23 | 24 | -webkit-hyphens: none; 25 | -moz-hyphens: none; 26 | -ms-hyphens: none; 27 | hyphens: none; 28 | 29 | } 30 | 31 | /* Code blocks */ 32 | pre[class*="language-"] { 33 | padding: 1em; 34 | margin: .5em 0; 35 | overflow: auto; 36 | } 37 | 38 | :not(pre) > code[class*="language-"], 39 | pre[class*="language-"] { 40 | background: #2d2d2d; 41 | } 42 | 43 | /* Inline code */ 44 | :not(pre) > code[class*="language-"] { 45 | padding: .1em; 46 | border-radius: .3em; 47 | white-space: normal; 48 | } 49 | 50 | .token.comment, 51 | .token.block-comment, 52 | .token.prolog, 53 | .token.doctype, 54 | .token.cdata { 55 | color: #999; 56 | } 57 | 58 | .token.punctuation { 59 | color: #ccc; 60 | } 61 | 62 | .token.tag, 63 | .token.attr-name, 64 | .token.namespace, 65 | .token.deleted { 66 | color: #e2777a; 67 | } 68 | 69 | .token.function-name { 70 | color: #6196cc; 71 | } 72 | 73 | .token.boolean, 74 | .token.number, 75 | .token.function { 76 | color: #f08d49; 77 | } 78 | 79 | .token.property, 80 | .token.class-name, 81 | .token.constant, 82 | .token.symbol { 83 | color: #f8c555; 84 | } 85 | 86 | .token.selector, 87 | .token.important, 88 | .token.atrule, 89 | .token.keyword, 90 | .token.builtin { 91 | color: #cc99cd; 92 | } 93 | 94 | .token.string, 95 | .token.char, 96 | .token.attr-value, 97 | .token.regex, 98 | .token.variable { 99 | color: #7ec699; 100 | } 101 | 102 | .token.operator, 103 | .token.entity, 104 | .token.url { 105 | color: #67cdcc; 106 | } 107 | 108 | .token.important, 109 | .token.bold { 110 | font-weight: bold; 111 | } 112 | .token.italic { 113 | font-style: italic; 114 | } 115 | 116 | .token.entity { 117 | cursor: help; 118 | } 119 | 120 | .token.inserted { 121 | color: green; 122 | } 123 | -------------------------------------------------------------------------------- /source/example_full/example.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @api {get} /user/:id Read data of a User 3 | * @apiVersion 0.3.0 4 | * @apiName GetUser 5 | * @apiGroup User 6 | * @apiPermission admin 7 | * 8 | * @apiDescription Compare Verison 0.3.0 with 0.2.0 and you will see the green markers with new items in version 0.3.0 and red markers with removed items since 0.2.0. 9 | * 10 | * @apiParam {String} id The Users-ID. 11 | * 12 | * @apiExample Example usage: 13 | * curl -i http://localhost/user/4711 14 | * 15 | * @apiSuccess {String} id The Users-ID. 16 | * @apiSuccess {Date} registered Registration Date. 17 | * @apiSuccess {Date} name Fullname of the User. 18 | * @apiSuccess {String[]} nicknames List of Users nicknames (Array of Strings). 19 | * @apiSuccess {Object} profile Profile data (example for an Object) 20 | * @apiSuccess {Number} profile.age Users age. 21 | * @apiSuccess {String} profile.image Avatar-Image. 22 | * @apiSuccess {Object[]} options List of Users options (Array of Objects). 23 | * @apiSuccess {String} options.name Option Name. 24 | * @apiSuccess {String} options.value Option Value. 25 | * 26 | * @apiError NoAccessRight Only authenticated Admins can access the data. 27 | * @apiError UserNotFound The id of the User was not found. 28 | * 29 | * @apiErrorExample Response (example): 30 | * HTTP/1.1 401 Not Authenticated 31 | * { 32 | * "error": "NoAccessRight" 33 | * } 34 | */ 35 | function getUser() { return; } 36 | 37 | /** 38 | * @api {post} /user Create a new User 39 | * @apiVersion 0.3.0 40 | * @apiName PostUser 41 | * @apiGroup User 42 | * @apiPermission none 43 | * 44 | * @apiDescription In this case "apiUse" is defined and used. 45 | * Define blocks with params that will be used in several functions, so you dont have to rewrite them. 46 | * 47 | * @apiParam {String} name Name of the User. 48 | * 49 | * @apiSuccess {String} id The new Users-ID. 50 | * 51 | * @apiUse CreateUserError 52 | */ 53 | function postUser() { return; } 54 | 55 | /** 56 | * @api {put} /user/:id Change a new User 57 | * @apiVersion 0.3.0 58 | * @apiName PutUser 59 | * @apiGroup User 60 | * @apiPermission none 61 | * 62 | * @apiDescription This function has same errors like POST /user, but errors not defined again, they were included with "apiUse" 63 | * 64 | * @apiParam {String} name Name of the User. 65 | * 66 | * @apiUse CreateUserError 67 | */ 68 | function putUser() { return; } -------------------------------------------------------------------------------- /source/example/example.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @api {get} /user/:id Read data of a User 3 | * @apiVersion 0.3.0 4 | * @apiName GetUser 5 | * @apiGroup User 6 | * @apiPermission admin 7 | * @apiSampleRequest http://apidocjs.com/example/api_project.json 8 | * 9 | * @apiDescription Compare Verison 0.3.0 with 0.2.0 and you will see the green markers with new items in version 0.3.0 and red markers with removed items since 0.2.0. 10 | * 11 | * @apiParam {String} id The Users-ID. 12 | * 13 | * @apiExample Example usage: 14 | * curl -i http://localhost/user/4711 15 | * 16 | * @apiSuccess {String} id The Users-ID. 17 | * @apiSuccess {Date} registered Registration Date. 18 | * @apiSuccess {Date} name Fullname of the User. 19 | * @apiSuccess {String[]} nicknames List of Users nicknames (Array of Strings). 20 | * @apiSuccess {Object} profile Profile data (example for an Object) 21 | * @apiSuccess {Number} profile.age Users age. 22 | * @apiSuccess {String} profile.image Avatar-Image. 23 | * @apiSuccess {Object[]} options List of Users options (Array of Objects). 24 | * @apiSuccess {String} options.name Option Name. 25 | * @apiSuccess {String} options.value Option Value. 26 | * 27 | * @apiError NoAccessRight Only authenticated Admins can access the data. 28 | * @apiError UserNotFound The id of the User was not found. 29 | * 30 | * @apiErrorExample Response (example): 31 | * HTTP/1.1 401 Not Authenticated 32 | * { 33 | * "error": "NoAccessRight" 34 | * } 35 | */ 36 | function getUser() { return; } 37 | 38 | /** 39 | * @api {post} /user Create a new User 40 | * @apiVersion 0.3.0 41 | * @apiName PostUser 42 | * @apiGroup User 43 | * @apiPermission none 44 | * 45 | * @apiDescription In this case "apiUse" is defined and used. 46 | * Define blocks with params that will be used in several functions, so you dont have to rewrite them. 47 | * 48 | * @apiParam {String} name Name of the User. 49 | * 50 | * @apiSuccess {String} id The new Users-ID. 51 | * 52 | * @apiUse CreateUserError 53 | */ 54 | function postUser() { return; } 55 | 56 | /** 57 | * @api {put} /user/:id Change a new User 58 | * @apiVersion 0.3.0 59 | * @apiName PutUser 60 | * @apiGroup User 61 | * @apiPermission none 62 | * 63 | * @apiDescription This function has same errors like POST /user, but errors not defined again, they were included with "apiUse" 64 | * 65 | * @apiParam {String} name Name of the User. 66 | * 67 | * @apiUse CreateUserError 68 | */ 69 | function putUser() { return; } -------------------------------------------------------------------------------- /example_basic/vendor/polyfill.js: -------------------------------------------------------------------------------- 1 | // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys 2 | if (!Object.keys) { 3 | Object.keys = (function () { 4 | 'use strict'; 5 | var hasOwnProperty = Object.prototype.hasOwnProperty, 6 | hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'), 7 | dontEnums = [ 8 | 'toString', 9 | 'toLocaleString', 10 | 'valueOf', 11 | 'hasOwnProperty', 12 | 'isPrototypeOf', 13 | 'propertyIsEnumerable', 14 | 'constructor' 15 | ], 16 | dontEnumsLength = dontEnums.length; 17 | 18 | return function (obj) { 19 | if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) { 20 | throw new TypeError('Object.keys called on non-object'); 21 | } 22 | 23 | var result = [], prop, i; 24 | 25 | for (prop in obj) { 26 | if (hasOwnProperty.call(obj, prop)) { 27 | result.push(prop); 28 | } 29 | } 30 | 31 | if (hasDontEnumBug) { 32 | for (i = 0; i < dontEnumsLength; i++) { 33 | if (hasOwnProperty.call(obj, dontEnums[i])) { 34 | result.push(dontEnums[i]); 35 | } 36 | } 37 | } 38 | return result; 39 | }; 40 | }()); 41 | } 42 | 43 | //Production steps of ECMA-262, Edition 5, 15.4.4.18 44 | //Reference: http://es5.github.com/#x15.4.4.18 45 | if (!Array.prototype.forEach) { 46 | 47 | Array.prototype.forEach = function (callback, thisArg) { 48 | 49 | var T, k; 50 | 51 | if (this == null) { 52 | throw new TypeError(" this is null or not defined"); 53 | } 54 | 55 | // 1. Let O be the result of calling ToObject passing the |this| value as the argument. 56 | var O = Object(this); 57 | 58 | // 2. Let lenValue be the result of calling the Get internal method of O with the argument "length". 59 | // 3. Let len be ToUint32(lenValue). 60 | var len = O.length >>> 0; 61 | 62 | // 4. If IsCallable(callback) is false, throw a TypeError exception. 63 | // See: http://es5.github.com/#x9.11 64 | if (typeof callback !== "function") { 65 | throw new TypeError(callback + " is not a function"); 66 | } 67 | 68 | // 5. If thisArg was supplied, let T be thisArg; else let T be undefined. 69 | if (arguments.length > 1) { 70 | T = thisArg; 71 | } 72 | 73 | // 6. Let k be 0 74 | k = 0; 75 | 76 | // 7. Repeat, while k < len 77 | while (k < len) { 78 | 79 | var kValue; 80 | 81 | // a. Let Pk be ToString(k). 82 | // This is implicit for LHS operands of the in operator 83 | // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk. 84 | // This step can be combined with c 85 | // c. If kPresent is true, then 86 | if (k in O) { 87 | 88 | // i. Let kValue be the result of calling the Get internal method of O with argument Pk. 89 | kValue = O[k]; 90 | 91 | // ii. Call the Call internal method of callback with T as the this value and 92 | // argument list containing kValue, k, and O. 93 | callback.call(T, kValue, k, O); 94 | } 95 | // d. Increase k by 1. 96 | k++; 97 | } 98 | // 8. return undefined 99 | }; 100 | } 101 | -------------------------------------------------------------------------------- /example_full/vendor/polyfill.js: -------------------------------------------------------------------------------- 1 | // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys 2 | if (!Object.keys) { 3 | Object.keys = (function () { 4 | 'use strict'; 5 | var hasOwnProperty = Object.prototype.hasOwnProperty, 6 | hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'), 7 | dontEnums = [ 8 | 'toString', 9 | 'toLocaleString', 10 | 'valueOf', 11 | 'hasOwnProperty', 12 | 'isPrototypeOf', 13 | 'propertyIsEnumerable', 14 | 'constructor' 15 | ], 16 | dontEnumsLength = dontEnums.length; 17 | 18 | return function (obj) { 19 | if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) { 20 | throw new TypeError('Object.keys called on non-object'); 21 | } 22 | 23 | var result = [], prop, i; 24 | 25 | for (prop in obj) { 26 | if (hasOwnProperty.call(obj, prop)) { 27 | result.push(prop); 28 | } 29 | } 30 | 31 | if (hasDontEnumBug) { 32 | for (i = 0; i < dontEnumsLength; i++) { 33 | if (hasOwnProperty.call(obj, dontEnums[i])) { 34 | result.push(dontEnums[i]); 35 | } 36 | } 37 | } 38 | return result; 39 | }; 40 | }()); 41 | } 42 | 43 | //Production steps of ECMA-262, Edition 5, 15.4.4.18 44 | //Reference: http://es5.github.com/#x15.4.4.18 45 | if (!Array.prototype.forEach) { 46 | 47 | Array.prototype.forEach = function (callback, thisArg) { 48 | 49 | var T, k; 50 | 51 | if (this == null) { 52 | throw new TypeError(" this is null or not defined"); 53 | } 54 | 55 | // 1. Let O be the result of calling ToObject passing the |this| value as the argument. 56 | var O = Object(this); 57 | 58 | // 2. Let lenValue be the result of calling the Get internal method of O with the argument "length". 59 | // 3. Let len be ToUint32(lenValue). 60 | var len = O.length >>> 0; 61 | 62 | // 4. If IsCallable(callback) is false, throw a TypeError exception. 63 | // See: http://es5.github.com/#x9.11 64 | if (typeof callback !== "function") { 65 | throw new TypeError(callback + " is not a function"); 66 | } 67 | 68 | // 5. If thisArg was supplied, let T be thisArg; else let T be undefined. 69 | if (arguments.length > 1) { 70 | T = thisArg; 71 | } 72 | 73 | // 6. Let k be 0 74 | k = 0; 75 | 76 | // 7. Repeat, while k < len 77 | while (k < len) { 78 | 79 | var kValue; 80 | 81 | // a. Let Pk be ToString(k). 82 | // This is implicit for LHS operands of the in operator 83 | // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk. 84 | // This step can be combined with c 85 | // c. If kPresent is true, then 86 | if (k in O) { 87 | 88 | // i. Let kValue be the result of calling the Get internal method of O with argument Pk. 89 | kValue = O[k]; 90 | 91 | // ii. Call the Call internal method of callback with T as the this value and 92 | // argument list containing kValue, k, and O. 93 | callback.call(T, kValue, k, O); 94 | } 95 | // d. Increase k by 1. 96 | k++; 97 | } 98 | // 8. return undefined 99 | }; 100 | } 101 | -------------------------------------------------------------------------------- /example_inherit/vendor/polyfill.js: -------------------------------------------------------------------------------- 1 | // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys 2 | if (!Object.keys) { 3 | Object.keys = (function () { 4 | 'use strict'; 5 | var hasOwnProperty = Object.prototype.hasOwnProperty, 6 | hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'), 7 | dontEnums = [ 8 | 'toString', 9 | 'toLocaleString', 10 | 'valueOf', 11 | 'hasOwnProperty', 12 | 'isPrototypeOf', 13 | 'propertyIsEnumerable', 14 | 'constructor' 15 | ], 16 | dontEnumsLength = dontEnums.length; 17 | 18 | return function (obj) { 19 | if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) { 20 | throw new TypeError('Object.keys called on non-object'); 21 | } 22 | 23 | var result = [], prop, i; 24 | 25 | for (prop in obj) { 26 | if (hasOwnProperty.call(obj, prop)) { 27 | result.push(prop); 28 | } 29 | } 30 | 31 | if (hasDontEnumBug) { 32 | for (i = 0; i < dontEnumsLength; i++) { 33 | if (hasOwnProperty.call(obj, dontEnums[i])) { 34 | result.push(dontEnums[i]); 35 | } 36 | } 37 | } 38 | return result; 39 | }; 40 | }()); 41 | } 42 | 43 | //Production steps of ECMA-262, Edition 5, 15.4.4.18 44 | //Reference: http://es5.github.com/#x15.4.4.18 45 | if (!Array.prototype.forEach) { 46 | 47 | Array.prototype.forEach = function (callback, thisArg) { 48 | 49 | var T, k; 50 | 51 | if (this == null) { 52 | throw new TypeError(" this is null or not defined"); 53 | } 54 | 55 | // 1. Let O be the result of calling ToObject passing the |this| value as the argument. 56 | var O = Object(this); 57 | 58 | // 2. Let lenValue be the result of calling the Get internal method of O with the argument "length". 59 | // 3. Let len be ToUint32(lenValue). 60 | var len = O.length >>> 0; 61 | 62 | // 4. If IsCallable(callback) is false, throw a TypeError exception. 63 | // See: http://es5.github.com/#x9.11 64 | if (typeof callback !== "function") { 65 | throw new TypeError(callback + " is not a function"); 66 | } 67 | 68 | // 5. If thisArg was supplied, let T be thisArg; else let T be undefined. 69 | if (arguments.length > 1) { 70 | T = thisArg; 71 | } 72 | 73 | // 6. Let k be 0 74 | k = 0; 75 | 76 | // 7. Repeat, while k < len 77 | while (k < len) { 78 | 79 | var kValue; 80 | 81 | // a. Let Pk be ToString(k). 82 | // This is implicit for LHS operands of the in operator 83 | // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk. 84 | // This step can be combined with c 85 | // c. If kPresent is true, then 86 | if (k in O) { 87 | 88 | // i. Let kValue be the result of calling the Get internal method of O with argument Pk. 89 | kValue = O[k]; 90 | 91 | // ii. Call the Call internal method of callback with T as the this value and 92 | // argument list containing kValue, k, and O. 93 | callback.call(T, kValue, k, O); 94 | } 95 | // d. Increase k by 1. 96 | k++; 97 | } 98 | // 8. return undefined 99 | }; 100 | } 101 | -------------------------------------------------------------------------------- /example_versioning/vendor/polyfill.js: -------------------------------------------------------------------------------- 1 | // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys 2 | if (!Object.keys) { 3 | Object.keys = (function () { 4 | 'use strict'; 5 | var hasOwnProperty = Object.prototype.hasOwnProperty, 6 | hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'), 7 | dontEnums = [ 8 | 'toString', 9 | 'toLocaleString', 10 | 'valueOf', 11 | 'hasOwnProperty', 12 | 'isPrototypeOf', 13 | 'propertyIsEnumerable', 14 | 'constructor' 15 | ], 16 | dontEnumsLength = dontEnums.length; 17 | 18 | return function (obj) { 19 | if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) { 20 | throw new TypeError('Object.keys called on non-object'); 21 | } 22 | 23 | var result = [], prop, i; 24 | 25 | for (prop in obj) { 26 | if (hasOwnProperty.call(obj, prop)) { 27 | result.push(prop); 28 | } 29 | } 30 | 31 | if (hasDontEnumBug) { 32 | for (i = 0; i < dontEnumsLength; i++) { 33 | if (hasOwnProperty.call(obj, dontEnums[i])) { 34 | result.push(dontEnums[i]); 35 | } 36 | } 37 | } 38 | return result; 39 | }; 40 | }()); 41 | } 42 | 43 | //Production steps of ECMA-262, Edition 5, 15.4.4.18 44 | //Reference: http://es5.github.com/#x15.4.4.18 45 | if (!Array.prototype.forEach) { 46 | 47 | Array.prototype.forEach = function (callback, thisArg) { 48 | 49 | var T, k; 50 | 51 | if (this == null) { 52 | throw new TypeError(" this is null or not defined"); 53 | } 54 | 55 | // 1. Let O be the result of calling ToObject passing the |this| value as the argument. 56 | var O = Object(this); 57 | 58 | // 2. Let lenValue be the result of calling the Get internal method of O with the argument "length". 59 | // 3. Let len be ToUint32(lenValue). 60 | var len = O.length >>> 0; 61 | 62 | // 4. If IsCallable(callback) is false, throw a TypeError exception. 63 | // See: http://es5.github.com/#x9.11 64 | if (typeof callback !== "function") { 65 | throw new TypeError(callback + " is not a function"); 66 | } 67 | 68 | // 5. If thisArg was supplied, let T be thisArg; else let T be undefined. 69 | if (arguments.length > 1) { 70 | T = thisArg; 71 | } 72 | 73 | // 6. Let k be 0 74 | k = 0; 75 | 76 | // 7. Repeat, while k < len 77 | while (k < len) { 78 | 79 | var kValue; 80 | 81 | // a. Let Pk be ToString(k). 82 | // This is implicit for LHS operands of the in operator 83 | // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk. 84 | // This step can be combined with c 85 | // c. If kPresent is true, then 86 | if (k in O) { 87 | 88 | // i. Let kValue be the result of calling the Get internal method of O with argument Pk. 89 | kValue = O[k]; 90 | 91 | // ii. Call the Call internal method of callback with T as the this value and 92 | // argument list containing kValue, k, and O. 93 | callback.call(T, kValue, k, O); 94 | } 95 | // d. Increase k by 1. 96 | k++; 97 | } 98 | // 8. return undefined 99 | }; 100 | } 101 | -------------------------------------------------------------------------------- /source/example/_apidoc.js: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------------------ 2 | // General apiDoc documentation blocks and old history blocks. 3 | // ------------------------------------------------------------------------------------------ 4 | 5 | // ------------------------------------------------------------------------------------------ 6 | // Current Success. 7 | // ------------------------------------------------------------------------------------------ 8 | 9 | 10 | // ------------------------------------------------------------------------------------------ 11 | // Current Errors. 12 | // ------------------------------------------------------------------------------------------ 13 | /** 14 | * @apiDefine CreateUserError 15 | * @apiVersion 0.2.0 16 | * 17 | * @apiError NoAccessRight Only authenticated Admins can access the data. 18 | * @apiError UserNameTooShort Minimum of 5 characters required. 19 | * 20 | * @apiErrorExample Response (example): 21 | * HTTP/1.1 400 Bad Request 22 | * { 23 | * "error": "UserNameTooShort" 24 | * } 25 | */ 26 | 27 | 28 | // ------------------------------------------------------------------------------------------ 29 | // Current Permissions. 30 | // ------------------------------------------------------------------------------------------ 31 | /** 32 | * @apiDefine admin Admin access rights needed. 33 | * Optionally you can write here further Informations about the permission. 34 | * 35 | * An "apiDefine"-block can have an "apiVersion", so you can attach the block to a specific version. 36 | * 37 | * @apiVersion 0.3.0 38 | */ 39 | 40 | 41 | // ------------------------------------------------------------------------------------------ 42 | // History. 43 | // ------------------------------------------------------------------------------------------ 44 | /** 45 | * @apiDefine admin This title is visible in version 0.1.0 and 0.2.0 46 | * @apiVersion 0.1.0 47 | */ 48 | 49 | /** 50 | * @api {get} /user/:id Read data of a User 51 | * @apiVersion 0.2.0 52 | * @apiName GetUser 53 | * @apiGroup User 54 | * @apiPermission admin 55 | * 56 | * @apiDescription Here you can describe the function. 57 | * Multilines are possible. 58 | * 59 | * @apiParam {String} id The Users-ID. 60 | * 61 | * @apiSuccess {String} id The Users-ID. 62 | * @apiSuccess {Date} name Fullname of the User. 63 | * 64 | * @apiError UserNotFound The id of the User was not found. 65 | */ 66 | 67 | /** 68 | * @api {get} /user/:id Read data of a User 69 | * @apiVersion 0.1.0 70 | * @apiName GetUser 71 | * @apiGroup User 72 | * @apiPermission admin 73 | * 74 | * @apiDescription Here you can describe the function. 75 | * Multilines are possible. 76 | * 77 | * @apiParam {String} id The Users-ID. 78 | * 79 | * @apiSuccess {String} id The Users-ID. 80 | * @apiSuccess {Date} name Fullname of the User. 81 | * 82 | * @apiError UserNotFound The error description text in version 0.1.0. 83 | */ 84 | 85 | /** 86 | * @api {post} /user Create a User 87 | * @apiVersion 0.2.0 88 | * @apiName PostUser 89 | * @apiGroup User 90 | * @apiPermission none 91 | * 92 | * @apiDescription In this case "apiUse" is defined and used. 93 | * Define blocks with params that will be used in several functions, so you dont have to rewrite them. 94 | * 95 | * @apiParam {String} name Name of the User. 96 | * 97 | * @apiSuccess {String} id The Users-ID. 98 | * 99 | * @apiUse CreateUserError 100 | */ -------------------------------------------------------------------------------- /source/example_full/_apidoc.js: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------------------ 2 | // General apiDoc documentation blocks and old history blocks. 3 | // ------------------------------------------------------------------------------------------ 4 | 5 | // ------------------------------------------------------------------------------------------ 6 | // Current Success. 7 | // ------------------------------------------------------------------------------------------ 8 | 9 | 10 | // ------------------------------------------------------------------------------------------ 11 | // Current Errors. 12 | // ------------------------------------------------------------------------------------------ 13 | /** 14 | * @apiDefine CreateUserError 15 | * @apiVersion 0.2.0 16 | * 17 | * @apiError NoAccessRight Only authenticated Admins can access the data. 18 | * @apiError UserNameTooShort Minimum of 5 characters required. 19 | * 20 | * @apiErrorExample Response (example): 21 | * HTTP/1.1 400 Bad Request 22 | * { 23 | * "error": "UserNameTooShort" 24 | * } 25 | */ 26 | 27 | 28 | // ------------------------------------------------------------------------------------------ 29 | // Current Permissions. 30 | // ------------------------------------------------------------------------------------------ 31 | /** 32 | * @apiDefine admin Admin access rights needed. 33 | * Optionally you can write here further Informations about the permission. 34 | * 35 | * An "apiDefine"-block can have an "apiVersion", so you can attach the block to a specific version. 36 | * 37 | * @apiVersion 0.3.0 38 | */ 39 | 40 | 41 | // ------------------------------------------------------------------------------------------ 42 | // History. 43 | // ------------------------------------------------------------------------------------------ 44 | /** 45 | * @apiDefine admin This title is visible in version 0.1.0 and 0.2.0 46 | * @apiVersion 0.1.0 47 | */ 48 | 49 | /** 50 | * @api {get} /user/:id Read data of a User 51 | * @apiVersion 0.2.0 52 | * @apiName GetUser 53 | * @apiGroup User 54 | * @apiPermission admin 55 | * 56 | * @apiDescription Here you can describe the function. 57 | * Multilines are possible. 58 | * 59 | * @apiParam {String} id The Users-ID. 60 | * 61 | * @apiSuccess {String} id The Users-ID. 62 | * @apiSuccess {Date} name Fullname of the User. 63 | * 64 | * @apiError UserNotFound The id of the User was not found. 65 | */ 66 | 67 | /** 68 | * @api {get} /user/:id Read data of a User 69 | * @apiVersion 0.1.0 70 | * @apiName GetUser 71 | * @apiGroup User 72 | * @apiPermission admin 73 | * 74 | * @apiDescription Here you can describe the function. 75 | * Multilines are possible. 76 | * 77 | * @apiParam {String} id The Users-ID. 78 | * 79 | * @apiSuccess {String} id The Users-ID. 80 | * @apiSuccess {Date} name Fullname of the User. 81 | * 82 | * @apiError UserNotFound The error description text in version 0.1.0. 83 | */ 84 | 85 | /** 86 | * @api {post} /user Create a User 87 | * @apiVersion 0.2.0 88 | * @apiName PostUser 89 | * @apiGroup User 90 | * @apiPermission none 91 | * 92 | * @apiDescription In this case "apiUse" is defined and used. 93 | * Define blocks with params that will be used in several functions, so you dont have to rewrite them. 94 | * 95 | * @apiParam {String} name Name of the User. 96 | * 97 | * @apiSuccess {String} id The Users-ID. 98 | * 99 | * @apiUse CreateUserError 100 | */ 101 | -------------------------------------------------------------------------------- /example_inherit/api_data.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "type": "get", 4 | "url": "/user/:id", 5 | "title": "Get User information", 6 | "name": "GetUser", 7 | "group": "User", 8 | "parameter": { 9 | "fields": { 10 | "Parameter": [ 11 | { 12 | "group": "Parameter", 13 | "type": "Number", 14 | "optional": false, 15 | "field": "id", 16 | "description": "

Users unique ID.

" 17 | } 18 | ] 19 | } 20 | }, 21 | "success": { 22 | "fields": { 23 | "Success 200": [ 24 | { 25 | "group": "Success 200", 26 | "type": "String", 27 | "optional": false, 28 | "field": "firstname", 29 | "description": "

Firstname of the User.

" 30 | }, 31 | { 32 | "group": "Success 200", 33 | "type": "String", 34 | "optional": false, 35 | "field": "lastname", 36 | "description": "

Lastname of the User.

" 37 | } 38 | ] 39 | }, 40 | "examples": [ 41 | { 42 | "title": "Success-Response:", 43 | "content": " HTTP/1.1 200 OK\n {\n \"firstname\": \"John\",\n \"lastname\": \"Doe\"\n }", 44 | "type": "json" 45 | } 46 | ] 47 | }, 48 | "version": "0.0.0", 49 | "filename": "source/example_inherit/example.js", 50 | "groupTitle": "User", 51 | "error": { 52 | "fields": { 53 | "Error 4xx": [ 54 | { 55 | "group": "Error 4xx", 56 | "optional": false, 57 | "field": "UserNotFound", 58 | "description": "

The id of the User was not found.

" 59 | } 60 | ] 61 | }, 62 | "examples": [ 63 | { 64 | "title": "Error-Response:", 65 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 66 | "type": "json" 67 | } 68 | ] 69 | } 70 | }, 71 | { 72 | "type": "put", 73 | "url": "/user/", 74 | "title": "Modify User information", 75 | "name": "PutUser", 76 | "group": "User", 77 | "parameter": { 78 | "fields": { 79 | "Parameter": [ 80 | { 81 | "group": "Parameter", 82 | "type": "Number", 83 | "optional": false, 84 | "field": "id", 85 | "description": "

Users unique ID.

" 86 | }, 87 | { 88 | "group": "Parameter", 89 | "type": "String", 90 | "optional": true, 91 | "field": "firstname", 92 | "description": "

Firstname of the User.

" 93 | }, 94 | { 95 | "group": "Parameter", 96 | "type": "String", 97 | "optional": true, 98 | "field": "lastname", 99 | "description": "

Lastname of the User.

" 100 | } 101 | ] 102 | } 103 | }, 104 | "success": { 105 | "examples": [ 106 | { 107 | "title": "Success-Response:", 108 | "content": " HTTP/1.1 200 OK", 109 | "type": "json" 110 | } 111 | ] 112 | }, 113 | "version": "0.0.0", 114 | "filename": "source/example_inherit/example.js", 115 | "groupTitle": "User", 116 | "error": { 117 | "fields": { 118 | "Error 4xx": [ 119 | { 120 | "group": "Error 4xx", 121 | "optional": false, 122 | "field": "UserNotFound", 123 | "description": "

The id of the User was not found.

" 124 | } 125 | ] 126 | }, 127 | "examples": [ 128 | { 129 | "title": "Error-Response:", 130 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 131 | "type": "json" 132 | } 133 | ] 134 | } 135 | } 136 | ] -------------------------------------------------------------------------------- /example_inherit/api_data.js: -------------------------------------------------------------------------------- 1 | define({ "api": [ 2 | { 3 | "type": "get", 4 | "url": "/user/:id", 5 | "title": "Get User information", 6 | "name": "GetUser", 7 | "group": "User", 8 | "parameter": { 9 | "fields": { 10 | "Parameter": [ 11 | { 12 | "group": "Parameter", 13 | "type": "Number", 14 | "optional": false, 15 | "field": "id", 16 | "description": "

Users unique ID.

" 17 | } 18 | ] 19 | } 20 | }, 21 | "success": { 22 | "fields": { 23 | "Success 200": [ 24 | { 25 | "group": "Success 200", 26 | "type": "String", 27 | "optional": false, 28 | "field": "firstname", 29 | "description": "

Firstname of the User.

" 30 | }, 31 | { 32 | "group": "Success 200", 33 | "type": "String", 34 | "optional": false, 35 | "field": "lastname", 36 | "description": "

Lastname of the User.

" 37 | } 38 | ] 39 | }, 40 | "examples": [ 41 | { 42 | "title": "Success-Response:", 43 | "content": " HTTP/1.1 200 OK\n {\n \"firstname\": \"John\",\n \"lastname\": \"Doe\"\n }", 44 | "type": "json" 45 | } 46 | ] 47 | }, 48 | "version": "0.0.0", 49 | "filename": "source/example_inherit/example.js", 50 | "groupTitle": "User", 51 | "error": { 52 | "fields": { 53 | "Error 4xx": [ 54 | { 55 | "group": "Error 4xx", 56 | "optional": false, 57 | "field": "UserNotFound", 58 | "description": "

The id of the User was not found.

" 59 | } 60 | ] 61 | }, 62 | "examples": [ 63 | { 64 | "title": "Error-Response:", 65 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 66 | "type": "json" 67 | } 68 | ] 69 | } 70 | }, 71 | { 72 | "type": "put", 73 | "url": "/user/", 74 | "title": "Modify User information", 75 | "name": "PutUser", 76 | "group": "User", 77 | "parameter": { 78 | "fields": { 79 | "Parameter": [ 80 | { 81 | "group": "Parameter", 82 | "type": "Number", 83 | "optional": false, 84 | "field": "id", 85 | "description": "

Users unique ID.

" 86 | }, 87 | { 88 | "group": "Parameter", 89 | "type": "String", 90 | "optional": true, 91 | "field": "firstname", 92 | "description": "

Firstname of the User.

" 93 | }, 94 | { 95 | "group": "Parameter", 96 | "type": "String", 97 | "optional": true, 98 | "field": "lastname", 99 | "description": "

Lastname of the User.

" 100 | } 101 | ] 102 | } 103 | }, 104 | "success": { 105 | "examples": [ 106 | { 107 | "title": "Success-Response:", 108 | "content": " HTTP/1.1 200 OK", 109 | "type": "json" 110 | } 111 | ] 112 | }, 113 | "version": "0.0.0", 114 | "filename": "source/example_inherit/example.js", 115 | "groupTitle": "User", 116 | "error": { 117 | "fields": { 118 | "Error 4xx": [ 119 | { 120 | "group": "Error 4xx", 121 | "optional": false, 122 | "field": "UserNotFound", 123 | "description": "

The id of the User was not found.

" 124 | } 125 | ] 126 | }, 127 | "examples": [ 128 | { 129 | "title": "Error-Response:", 130 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 131 | "type": "json" 132 | } 133 | ] 134 | } 135 | } 136 | ] }); -------------------------------------------------------------------------------- /css/easy-responsive-tabs.css: -------------------------------------------------------------------------------- 1 | ul.resp-tabs-list, p { 2 | margin: 0px; 3 | padding: 0px; 4 | } 5 | 6 | .resp-tabs-list li { 7 | font-weight: 600; 8 | font-size: 13px; 9 | display: inline-block; 10 | padding: 13px 15px; 11 | margin: 0; 12 | list-style: none; 13 | cursor: pointer; 14 | float: left; 15 | } 16 | 17 | .resp-tabs-container { 18 | padding: 0px; 19 | background-color: #fff; 20 | clear: left; 21 | } 22 | 23 | h2.resp-accordion { 24 | cursor: pointer; 25 | padding: 5px; 26 | display: none; 27 | } 28 | 29 | .resp-tab-content { 30 | display: none; 31 | padding: 15px; 32 | } 33 | 34 | .resp-tab-active { 35 | border: 1px solid #c1c1c1; 36 | border-bottom: none; 37 | margin-bottom: -1px !important; 38 | padding: 12px 14px 14px 14px !important; 39 | } 40 | 41 | .resp-tab-active { 42 | border-bottom: none; 43 | background-color: #fff; 44 | } 45 | 46 | .resp-content-active, .resp-accordion-active { 47 | display: block; 48 | } 49 | 50 | .resp-tab-content { 51 | border: 1px solid #c1c1c1; 52 | } 53 | 54 | h2.resp-accordion { 55 | font-size: 13px; 56 | border: 1px solid #c1c1c1; 57 | border-top: 0px solid #c1c1c1; 58 | margin: 0px; 59 | padding: 10px 15px; 60 | } 61 | 62 | h2.resp-tab-active { 63 | border-bottom: 0px solid #c1c1c1 !important; 64 | margin-bottom: 0px !important; 65 | padding: 10px 15px !important; 66 | } 67 | 68 | h2.resp-tab-title:last-child { 69 | border-bottom: 12px solid #c1c1c1 !important; 70 | background: blue; 71 | } 72 | /*-----------Vertical tabs-----------*/ 73 | .resp-vtabs ul.resp-tabs-list { 74 | float: left; 75 | width: 30%; 76 | } 77 | 78 | .resp-vtabs .resp-tabs-list li { 79 | display: block; 80 | padding: 15px 15px !important; 81 | margin: 0; 82 | cursor: pointer; 83 | float: none; 84 | } 85 | 86 | .resp-vtabs .resp-tabs-container { 87 | padding: 0px; 88 | background-color: #fff; 89 | border: 1px solid #c1c1c1; 90 | float: left; 91 | width: 68%; 92 | min-height: 250px; 93 | border-radius: 4px; 94 | clear: none; 95 | } 96 | 97 | .resp-vtabs .resp-tab-content { 98 | border: none; 99 | } 100 | 101 | .resp-vtabs li.resp-tab-active { 102 | border: 1px solid #c1c1c1; 103 | border-right: none; 104 | background-color: #fff; 105 | position: relative; 106 | z-index: 1; 107 | margin-right: -1px !important; 108 | padding: 14px 15px 15px 14px !important; 109 | } 110 | 111 | .resp-arrow { 112 | width: 0; 113 | height: 0; 114 | float: right; 115 | margin-top: 3px; 116 | border-left: 6px solid transparent; 117 | border-right: 6px solid transparent; 118 | border-top: 12px solid #c1c1c1; 119 | } 120 | 121 | h2.resp-tab-active span.resp-arrow { 122 | border: none; 123 | border-left: 6px solid transparent; 124 | border-right: 6px solid transparent; 125 | border-bottom: 12px solid #9B9797; 126 | } 127 | 128 | /*-----------Accordion styles-----------*/ 129 | h2.resp-tab-active { 130 | background: #DBDBDB !important; 131 | } 132 | .resp-easy-accordion h2.resp-accordion { 133 | display: block; 134 | } 135 | .resp-easy-accordion .resp-tab-content { 136 | border: 1px solid #c1c1c1; 137 | } 138 | 139 | .resp-easy-accordion .resp-tab-content:last-child { 140 | border-bottom: 1px solid #c1c1c1 !important; 141 | } 142 | 143 | .resp-jfit { 144 | width: 100%; 145 | margin: 0px; 146 | } 147 | 148 | .resp-tab-content-active { 149 | display: block; 150 | } 151 | 152 | h2.resp-accordion:first-child { 153 | border-top: 1px solid #c1c1c1 !important; 154 | } 155 | 156 | /*Here your can change the breakpoint to set the accordion, when screen resolution changed*/ 157 | @media only screen and (max-width: 768px) { 158 | ul.resp-tabs-list { 159 | display: none; 160 | } 161 | 162 | h2.resp-accordion { 163 | display: block; 164 | } 165 | 166 | .resp-vtabs .resp-tab-content { 167 | border: 1px solid #C1C1C1; 168 | } 169 | 170 | .resp-vtabs .resp-tabs-container { 171 | border: none; 172 | float: none; 173 | width: 100%; 174 | min-height: initial; 175 | clear: none; 176 | } 177 | .resp-accordion-closed { 178 | display:none !important; 179 | } 180 | .resp-vtabs .resp-tab-content:last-child { 181 | border-bottom: 1px solid #c1c1c1 !important; 182 | } 183 | } 184 | -------------------------------------------------------------------------------- /example_versioning/api_data.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "type": "get", 4 | "url": "/user/:id", 5 | "title": "Get User information and Date of Registration.", 6 | "version": "0.2.0", 7 | "name": "GetUser", 8 | "group": "User", 9 | "parameter": { 10 | "fields": { 11 | "Parameter": [ 12 | { 13 | "group": "Parameter", 14 | "type": "Number", 15 | "optional": false, 16 | "field": "id", 17 | "description": "

Users unique ID.

" 18 | } 19 | ] 20 | } 21 | }, 22 | "success": { 23 | "fields": { 24 | "Success 200": [ 25 | { 26 | "group": "Success 200", 27 | "type": "String", 28 | "optional": false, 29 | "field": "firstname", 30 | "description": "

Firstname of the User.

" 31 | }, 32 | { 33 | "group": "Success 200", 34 | "type": "String", 35 | "optional": false, 36 | "field": "lastname", 37 | "description": "

Lastname of the User.

" 38 | }, 39 | { 40 | "group": "Success 200", 41 | "type": "Date", 42 | "optional": false, 43 | "field": "registered", 44 | "description": "

Date of Registration.

" 45 | } 46 | ] 47 | }, 48 | "examples": [ 49 | { 50 | "title": "Success-Response:", 51 | "content": " HTTP/1.1 200 OK\n {\n \"firstname\": \"John\",\n \"lastname\": \"Doe\"\n }", 52 | "type": "json" 53 | } 54 | ] 55 | }, 56 | "error": { 57 | "fields": { 58 | "Error 4xx": [ 59 | { 60 | "group": "Error 4xx", 61 | "optional": false, 62 | "field": "UserNotFound", 63 | "description": "

The id of the User was not found.

" 64 | } 65 | ] 66 | }, 67 | "examples": [ 68 | { 69 | "title": "Error-Response:", 70 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 71 | "type": "json" 72 | } 73 | ] 74 | }, 75 | "filename": "source/example_versioning/example.js", 76 | "groupTitle": "User" 77 | }, 78 | { 79 | "type": "get", 80 | "url": "/user/:id", 81 | "title": "Get User information", 82 | "version": "0.1.0", 83 | "name": "GetUser", 84 | "group": "User", 85 | "parameter": { 86 | "fields": { 87 | "Parameter": [ 88 | { 89 | "group": "Parameter", 90 | "type": "Number", 91 | "optional": false, 92 | "field": "id", 93 | "description": "

Users unique ID.

" 94 | } 95 | ] 96 | } 97 | }, 98 | "success": { 99 | "fields": { 100 | "Success 200": [ 101 | { 102 | "group": "Success 200", 103 | "type": "String", 104 | "optional": false, 105 | "field": "firstname", 106 | "description": "

Firstname of the User.

" 107 | }, 108 | { 109 | "group": "Success 200", 110 | "type": "String", 111 | "optional": false, 112 | "field": "lastname", 113 | "description": "

Lastname of the User.

" 114 | } 115 | ] 116 | }, 117 | "examples": [ 118 | { 119 | "title": "Success-Response:", 120 | "content": " HTTP/1.1 200 OK\n {\n \"firstname\": \"John\",\n \"lastname\": \"Doe\"\n }", 121 | "type": "json" 122 | } 123 | ] 124 | }, 125 | "error": { 126 | "fields": { 127 | "Error 4xx": [ 128 | { 129 | "group": "Error 4xx", 130 | "optional": false, 131 | "field": "UserNotFound", 132 | "description": "

The id of the User was not found.

" 133 | } 134 | ] 135 | }, 136 | "examples": [ 137 | { 138 | "title": "Error-Response:", 139 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 140 | "type": "json" 141 | } 142 | ] 143 | }, 144 | "filename": "source/example_versioning/_apidoc.js", 145 | "groupTitle": "User" 146 | } 147 | ] -------------------------------------------------------------------------------- /example_versioning/api_data.js: -------------------------------------------------------------------------------- 1 | define({ "api": [ 2 | { 3 | "type": "get", 4 | "url": "/user/:id", 5 | "title": "Get User information and Date of Registration.", 6 | "version": "0.2.0", 7 | "name": "GetUser", 8 | "group": "User", 9 | "parameter": { 10 | "fields": { 11 | "Parameter": [ 12 | { 13 | "group": "Parameter", 14 | "type": "Number", 15 | "optional": false, 16 | "field": "id", 17 | "description": "

Users unique ID.

" 18 | } 19 | ] 20 | } 21 | }, 22 | "success": { 23 | "fields": { 24 | "Success 200": [ 25 | { 26 | "group": "Success 200", 27 | "type": "String", 28 | "optional": false, 29 | "field": "firstname", 30 | "description": "

Firstname of the User.

" 31 | }, 32 | { 33 | "group": "Success 200", 34 | "type": "String", 35 | "optional": false, 36 | "field": "lastname", 37 | "description": "

Lastname of the User.

" 38 | }, 39 | { 40 | "group": "Success 200", 41 | "type": "Date", 42 | "optional": false, 43 | "field": "registered", 44 | "description": "

Date of Registration.

" 45 | } 46 | ] 47 | }, 48 | "examples": [ 49 | { 50 | "title": "Success-Response:", 51 | "content": " HTTP/1.1 200 OK\n {\n \"firstname\": \"John\",\n \"lastname\": \"Doe\"\n }", 52 | "type": "json" 53 | } 54 | ] 55 | }, 56 | "error": { 57 | "fields": { 58 | "Error 4xx": [ 59 | { 60 | "group": "Error 4xx", 61 | "optional": false, 62 | "field": "UserNotFound", 63 | "description": "

The id of the User was not found.

" 64 | } 65 | ] 66 | }, 67 | "examples": [ 68 | { 69 | "title": "Error-Response:", 70 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 71 | "type": "json" 72 | } 73 | ] 74 | }, 75 | "filename": "source/example_versioning/example.js", 76 | "groupTitle": "User" 77 | }, 78 | { 79 | "type": "get", 80 | "url": "/user/:id", 81 | "title": "Get User information", 82 | "version": "0.1.0", 83 | "name": "GetUser", 84 | "group": "User", 85 | "parameter": { 86 | "fields": { 87 | "Parameter": [ 88 | { 89 | "group": "Parameter", 90 | "type": "Number", 91 | "optional": false, 92 | "field": "id", 93 | "description": "

Users unique ID.

" 94 | } 95 | ] 96 | } 97 | }, 98 | "success": { 99 | "fields": { 100 | "Success 200": [ 101 | { 102 | "group": "Success 200", 103 | "type": "String", 104 | "optional": false, 105 | "field": "firstname", 106 | "description": "

Firstname of the User.

" 107 | }, 108 | { 109 | "group": "Success 200", 110 | "type": "String", 111 | "optional": false, 112 | "field": "lastname", 113 | "description": "

Lastname of the User.

" 114 | } 115 | ] 116 | }, 117 | "examples": [ 118 | { 119 | "title": "Success-Response:", 120 | "content": " HTTP/1.1 200 OK\n {\n \"firstname\": \"John\",\n \"lastname\": \"Doe\"\n }", 121 | "type": "json" 122 | } 123 | ] 124 | }, 125 | "error": { 126 | "fields": { 127 | "Error 4xx": [ 128 | { 129 | "group": "Error 4xx", 130 | "optional": false, 131 | "field": "UserNotFound", 132 | "description": "

The id of the User was not found.

" 133 | } 134 | ] 135 | }, 136 | "examples": [ 137 | { 138 | "title": "Error-Response:", 139 | "content": " HTTP/1.1 404 Not Found\n {\n \"error\": \"UserNotFound\"\n }", 140 | "type": "json" 141 | } 142 | ] 143 | }, 144 | "filename": "source/example_versioning/_apidoc.js", 145 | "groupTitle": "User" 146 | } 147 | ] }); -------------------------------------------------------------------------------- /example_basic/vendor/path-to-regexp/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Expose `pathtoRegexp`. 3 | */ 4 | //module.exports = pathtoRegexp; 5 | 6 | /** 7 | * The main path matching regexp utility. 8 | * 9 | * @type {RegExp} 10 | */ 11 | var PATH_REGEXP = new RegExp([ 12 | // Match already escaped characters that would otherwise incorrectly appear 13 | // in future matches. This allows the user to escape special characters that 14 | // shouldn't be transformed. 15 | '(\\\\.)', 16 | // Match Express-style parameters and un-named parameters with a prefix 17 | // and optional suffixes. Matches appear as: 18 | // 19 | // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?"] 20 | // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined] 21 | '([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?', 22 | // Match regexp special characters that should always be escaped. 23 | '([.+*?=^!:${}()[\\]|\\/])' 24 | ].join('|'), 'g'); 25 | 26 | /** 27 | * Escape the capturing group by escaping special characters and meaning. 28 | * 29 | * @param {String} group 30 | * @return {String} 31 | */ 32 | function escapeGroup (group) { 33 | return group.replace(/([=!:$\/()])/g, '\\$1'); 34 | } 35 | 36 | /** 37 | * Attach the keys as a property of the regexp. 38 | * 39 | * @param {RegExp} re 40 | * @param {Array} keys 41 | * @return {RegExp} 42 | */ 43 | var attachKeys = function (re, keys) { 44 | re.keys = keys; 45 | 46 | return re; 47 | }; 48 | 49 | /** 50 | * Normalize the given path string, returning a regular expression. 51 | * 52 | * An empty array should be passed in, which will contain the placeholder key 53 | * names. For example `/user/:id` will then contain `["id"]`. 54 | * 55 | * @param {(String|RegExp|Array)} path 56 | * @param {Array} keys 57 | * @param {Object} options 58 | * @return {RegExp} 59 | */ 60 | function pathtoRegexp (path, keys, options) { 61 | if (keys && !Array.isArray(keys)) { 62 | options = keys; 63 | keys = null; 64 | } 65 | 66 | keys = keys || []; 67 | options = options || {}; 68 | 69 | var strict = options.strict; 70 | var end = options.end !== false; 71 | var flags = options.sensitive ? '' : 'i'; 72 | var index = 0; 73 | 74 | if (path instanceof RegExp) { 75 | // Match all capturing groups of a regexp. 76 | var groups = path.source.match(/\((?!\?)/g) || []; 77 | 78 | // Map all the matches to their numeric keys and push into the keys. 79 | keys.push.apply(keys, groups.map(function (match, index) { 80 | return { 81 | name: index, 82 | delimiter: null, 83 | optional: false, 84 | repeat: false 85 | }; 86 | })); 87 | 88 | // Return the source back to the user. 89 | return attachKeys(path, keys); 90 | } 91 | 92 | if (Array.isArray(path)) { 93 | // Map array parts into regexps and return their source. We also pass 94 | // the same keys and options instance into every generation to get 95 | // consistent matching groups before we join the sources together. 96 | path = path.map(function (value) { 97 | return pathtoRegexp(value, keys, options).source; 98 | }); 99 | 100 | // Generate a new regexp instance by joining all the parts together. 101 | return attachKeys(new RegExp('(?:' + path.join('|') + ')', flags), keys); 102 | } 103 | 104 | // Alter the path string into a usable regexp. 105 | path = path.replace(PATH_REGEXP, function (match, escaped, prefix, key, capture, group, suffix, escape) { 106 | // Avoiding re-escaping escaped characters. 107 | if (escaped) { 108 | return escaped; 109 | } 110 | 111 | // Escape regexp special characters. 112 | if (escape) { 113 | return '\\' + escape; 114 | } 115 | 116 | var repeat = suffix === '+' || suffix === '*'; 117 | var optional = suffix === '?' || suffix === '*'; 118 | 119 | keys.push({ 120 | name: key || index++, 121 | delimiter: prefix || '/', 122 | optional: optional, 123 | repeat: repeat 124 | }); 125 | 126 | // Escape the prefix character. 127 | prefix = prefix ? '\\' + prefix : ''; 128 | 129 | // Match using the custom capturing group, or fallback to capturing 130 | // everything up to the next slash (or next period if the param was 131 | // prefixed with a period). 132 | capture = escapeGroup(capture || group || '[^' + (prefix || '\\/') + ']+?'); 133 | 134 | // Allow parameters to be repeated more than once. 135 | if (repeat) { 136 | capture = capture + '(?:' + prefix + capture + ')*'; 137 | } 138 | 139 | // Allow a parameter to be optional. 140 | if (optional) { 141 | return '(?:' + prefix + '(' + capture + '))?'; 142 | } 143 | 144 | // Basic parameter support. 145 | return prefix + '(' + capture + ')'; 146 | }); 147 | 148 | // Check whether the path ends in a slash as it alters some match behaviour. 149 | var endsWithSlash = path[path.length - 1] === '/'; 150 | 151 | // In non-strict mode we allow an optional trailing slash in the match. If 152 | // the path to match already ended with a slash, we need to remove it for 153 | // consistency. The slash is only valid at the very end of a path match, not 154 | // anywhere in the middle. This is important for non-ending mode, otherwise 155 | // "/test/" will match "/test//route". 156 | if (!strict) { 157 | path = (endsWithSlash ? path.slice(0, -2) : path) + '(?:\\/(?=$))?'; 158 | } 159 | 160 | // In non-ending mode, we need prompt the capturing groups to match as much 161 | // as possible by using a positive lookahead for the end or next path segment. 162 | if (!end) { 163 | path += strict && endsWithSlash ? '' : '(?=\\/|$)'; 164 | } 165 | 166 | return attachKeys(new RegExp('^' + path + (end ? '$' : ''), flags), keys); 167 | }; 168 | -------------------------------------------------------------------------------- /example_full/vendor/path-to-regexp/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Expose `pathtoRegexp`. 3 | */ 4 | //module.exports = pathtoRegexp; 5 | 6 | /** 7 | * The main path matching regexp utility. 8 | * 9 | * @type {RegExp} 10 | */ 11 | var PATH_REGEXP = new RegExp([ 12 | // Match already escaped characters that would otherwise incorrectly appear 13 | // in future matches. This allows the user to escape special characters that 14 | // shouldn't be transformed. 15 | '(\\\\.)', 16 | // Match Express-style parameters and un-named parameters with a prefix 17 | // and optional suffixes. Matches appear as: 18 | // 19 | // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?"] 20 | // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined] 21 | '([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?', 22 | // Match regexp special characters that should always be escaped. 23 | '([.+*?=^!:${}()[\\]|\\/])' 24 | ].join('|'), 'g'); 25 | 26 | /** 27 | * Escape the capturing group by escaping special characters and meaning. 28 | * 29 | * @param {String} group 30 | * @return {String} 31 | */ 32 | function escapeGroup (group) { 33 | return group.replace(/([=!:$\/()])/g, '\\$1'); 34 | } 35 | 36 | /** 37 | * Attach the keys as a property of the regexp. 38 | * 39 | * @param {RegExp} re 40 | * @param {Array} keys 41 | * @return {RegExp} 42 | */ 43 | var attachKeys = function (re, keys) { 44 | re.keys = keys; 45 | 46 | return re; 47 | }; 48 | 49 | /** 50 | * Normalize the given path string, returning a regular expression. 51 | * 52 | * An empty array should be passed in, which will contain the placeholder key 53 | * names. For example `/user/:id` will then contain `["id"]`. 54 | * 55 | * @param {(String|RegExp|Array)} path 56 | * @param {Array} keys 57 | * @param {Object} options 58 | * @return {RegExp} 59 | */ 60 | function pathtoRegexp (path, keys, options) { 61 | if (keys && !Array.isArray(keys)) { 62 | options = keys; 63 | keys = null; 64 | } 65 | 66 | keys = keys || []; 67 | options = options || {}; 68 | 69 | var strict = options.strict; 70 | var end = options.end !== false; 71 | var flags = options.sensitive ? '' : 'i'; 72 | var index = 0; 73 | 74 | if (path instanceof RegExp) { 75 | // Match all capturing groups of a regexp. 76 | var groups = path.source.match(/\((?!\?)/g) || []; 77 | 78 | // Map all the matches to their numeric keys and push into the keys. 79 | keys.push.apply(keys, groups.map(function (match, index) { 80 | return { 81 | name: index, 82 | delimiter: null, 83 | optional: false, 84 | repeat: false 85 | }; 86 | })); 87 | 88 | // Return the source back to the user. 89 | return attachKeys(path, keys); 90 | } 91 | 92 | if (Array.isArray(path)) { 93 | // Map array parts into regexps and return their source. We also pass 94 | // the same keys and options instance into every generation to get 95 | // consistent matching groups before we join the sources together. 96 | path = path.map(function (value) { 97 | return pathtoRegexp(value, keys, options).source; 98 | }); 99 | 100 | // Generate a new regexp instance by joining all the parts together. 101 | return attachKeys(new RegExp('(?:' + path.join('|') + ')', flags), keys); 102 | } 103 | 104 | // Alter the path string into a usable regexp. 105 | path = path.replace(PATH_REGEXP, function (match, escaped, prefix, key, capture, group, suffix, escape) { 106 | // Avoiding re-escaping escaped characters. 107 | if (escaped) { 108 | return escaped; 109 | } 110 | 111 | // Escape regexp special characters. 112 | if (escape) { 113 | return '\\' + escape; 114 | } 115 | 116 | var repeat = suffix === '+' || suffix === '*'; 117 | var optional = suffix === '?' || suffix === '*'; 118 | 119 | keys.push({ 120 | name: key || index++, 121 | delimiter: prefix || '/', 122 | optional: optional, 123 | repeat: repeat 124 | }); 125 | 126 | // Escape the prefix character. 127 | prefix = prefix ? '\\' + prefix : ''; 128 | 129 | // Match using the custom capturing group, or fallback to capturing 130 | // everything up to the next slash (or next period if the param was 131 | // prefixed with a period). 132 | capture = escapeGroup(capture || group || '[^' + (prefix || '\\/') + ']+?'); 133 | 134 | // Allow parameters to be repeated more than once. 135 | if (repeat) { 136 | capture = capture + '(?:' + prefix + capture + ')*'; 137 | } 138 | 139 | // Allow a parameter to be optional. 140 | if (optional) { 141 | return '(?:' + prefix + '(' + capture + '))?'; 142 | } 143 | 144 | // Basic parameter support. 145 | return prefix + '(' + capture + ')'; 146 | }); 147 | 148 | // Check whether the path ends in a slash as it alters some match behaviour. 149 | var endsWithSlash = path[path.length - 1] === '/'; 150 | 151 | // In non-strict mode we allow an optional trailing slash in the match. If 152 | // the path to match already ended with a slash, we need to remove it for 153 | // consistency. The slash is only valid at the very end of a path match, not 154 | // anywhere in the middle. This is important for non-ending mode, otherwise 155 | // "/test/" will match "/test//route". 156 | if (!strict) { 157 | path = (endsWithSlash ? path.slice(0, -2) : path) + '(?:\\/(?=$))?'; 158 | } 159 | 160 | // In non-ending mode, we need prompt the capturing groups to match as much 161 | // as possible by using a positive lookahead for the end or next path segment. 162 | if (!end) { 163 | path += strict && endsWithSlash ? '' : '(?=\\/|$)'; 164 | } 165 | 166 | return attachKeys(new RegExp('^' + path + (end ? '$' : ''), flags), keys); 167 | }; 168 | -------------------------------------------------------------------------------- /example_inherit/vendor/path-to-regexp/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Expose `pathtoRegexp`. 3 | */ 4 | //module.exports = pathtoRegexp; 5 | 6 | /** 7 | * The main path matching regexp utility. 8 | * 9 | * @type {RegExp} 10 | */ 11 | var PATH_REGEXP = new RegExp([ 12 | // Match already escaped characters that would otherwise incorrectly appear 13 | // in future matches. This allows the user to escape special characters that 14 | // shouldn't be transformed. 15 | '(\\\\.)', 16 | // Match Express-style parameters and un-named parameters with a prefix 17 | // and optional suffixes. Matches appear as: 18 | // 19 | // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?"] 20 | // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined] 21 | '([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?', 22 | // Match regexp special characters that should always be escaped. 23 | '([.+*?=^!:${}()[\\]|\\/])' 24 | ].join('|'), 'g'); 25 | 26 | /** 27 | * Escape the capturing group by escaping special characters and meaning. 28 | * 29 | * @param {String} group 30 | * @return {String} 31 | */ 32 | function escapeGroup (group) { 33 | return group.replace(/([=!:$\/()])/g, '\\$1'); 34 | } 35 | 36 | /** 37 | * Attach the keys as a property of the regexp. 38 | * 39 | * @param {RegExp} re 40 | * @param {Array} keys 41 | * @return {RegExp} 42 | */ 43 | var attachKeys = function (re, keys) { 44 | re.keys = keys; 45 | 46 | return re; 47 | }; 48 | 49 | /** 50 | * Normalize the given path string, returning a regular expression. 51 | * 52 | * An empty array should be passed in, which will contain the placeholder key 53 | * names. For example `/user/:id` will then contain `["id"]`. 54 | * 55 | * @param {(String|RegExp|Array)} path 56 | * @param {Array} keys 57 | * @param {Object} options 58 | * @return {RegExp} 59 | */ 60 | function pathtoRegexp (path, keys, options) { 61 | if (keys && !Array.isArray(keys)) { 62 | options = keys; 63 | keys = null; 64 | } 65 | 66 | keys = keys || []; 67 | options = options || {}; 68 | 69 | var strict = options.strict; 70 | var end = options.end !== false; 71 | var flags = options.sensitive ? '' : 'i'; 72 | var index = 0; 73 | 74 | if (path instanceof RegExp) { 75 | // Match all capturing groups of a regexp. 76 | var groups = path.source.match(/\((?!\?)/g) || []; 77 | 78 | // Map all the matches to their numeric keys and push into the keys. 79 | keys.push.apply(keys, groups.map(function (match, index) { 80 | return { 81 | name: index, 82 | delimiter: null, 83 | optional: false, 84 | repeat: false 85 | }; 86 | })); 87 | 88 | // Return the source back to the user. 89 | return attachKeys(path, keys); 90 | } 91 | 92 | if (Array.isArray(path)) { 93 | // Map array parts into regexps and return their source. We also pass 94 | // the same keys and options instance into every generation to get 95 | // consistent matching groups before we join the sources together. 96 | path = path.map(function (value) { 97 | return pathtoRegexp(value, keys, options).source; 98 | }); 99 | 100 | // Generate a new regexp instance by joining all the parts together. 101 | return attachKeys(new RegExp('(?:' + path.join('|') + ')', flags), keys); 102 | } 103 | 104 | // Alter the path string into a usable regexp. 105 | path = path.replace(PATH_REGEXP, function (match, escaped, prefix, key, capture, group, suffix, escape) { 106 | // Avoiding re-escaping escaped characters. 107 | if (escaped) { 108 | return escaped; 109 | } 110 | 111 | // Escape regexp special characters. 112 | if (escape) { 113 | return '\\' + escape; 114 | } 115 | 116 | var repeat = suffix === '+' || suffix === '*'; 117 | var optional = suffix === '?' || suffix === '*'; 118 | 119 | keys.push({ 120 | name: key || index++, 121 | delimiter: prefix || '/', 122 | optional: optional, 123 | repeat: repeat 124 | }); 125 | 126 | // Escape the prefix character. 127 | prefix = prefix ? '\\' + prefix : ''; 128 | 129 | // Match using the custom capturing group, or fallback to capturing 130 | // everything up to the next slash (or next period if the param was 131 | // prefixed with a period). 132 | capture = escapeGroup(capture || group || '[^' + (prefix || '\\/') + ']+?'); 133 | 134 | // Allow parameters to be repeated more than once. 135 | if (repeat) { 136 | capture = capture + '(?:' + prefix + capture + ')*'; 137 | } 138 | 139 | // Allow a parameter to be optional. 140 | if (optional) { 141 | return '(?:' + prefix + '(' + capture + '))?'; 142 | } 143 | 144 | // Basic parameter support. 145 | return prefix + '(' + capture + ')'; 146 | }); 147 | 148 | // Check whether the path ends in a slash as it alters some match behaviour. 149 | var endsWithSlash = path[path.length - 1] === '/'; 150 | 151 | // In non-strict mode we allow an optional trailing slash in the match. If 152 | // the path to match already ended with a slash, we need to remove it for 153 | // consistency. The slash is only valid at the very end of a path match, not 154 | // anywhere in the middle. This is important for non-ending mode, otherwise 155 | // "/test/" will match "/test//route". 156 | if (!strict) { 157 | path = (endsWithSlash ? path.slice(0, -2) : path) + '(?:\\/(?=$))?'; 158 | } 159 | 160 | // In non-ending mode, we need prompt the capturing groups to match as much 161 | // as possible by using a positive lookahead for the end or next path segment. 162 | if (!end) { 163 | path += strict && endsWithSlash ? '' : '(?=\\/|$)'; 164 | } 165 | 166 | return attachKeys(new RegExp('^' + path + (end ? '$' : ''), flags), keys); 167 | }; 168 | -------------------------------------------------------------------------------- /example_versioning/vendor/path-to-regexp/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Expose `pathtoRegexp`. 3 | */ 4 | //module.exports = pathtoRegexp; 5 | 6 | /** 7 | * The main path matching regexp utility. 8 | * 9 | * @type {RegExp} 10 | */ 11 | var PATH_REGEXP = new RegExp([ 12 | // Match already escaped characters that would otherwise incorrectly appear 13 | // in future matches. This allows the user to escape special characters that 14 | // shouldn't be transformed. 15 | '(\\\\.)', 16 | // Match Express-style parameters and un-named parameters with a prefix 17 | // and optional suffixes. Matches appear as: 18 | // 19 | // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?"] 20 | // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined] 21 | '([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?', 22 | // Match regexp special characters that should always be escaped. 23 | '([.+*?=^!:${}()[\\]|\\/])' 24 | ].join('|'), 'g'); 25 | 26 | /** 27 | * Escape the capturing group by escaping special characters and meaning. 28 | * 29 | * @param {String} group 30 | * @return {String} 31 | */ 32 | function escapeGroup (group) { 33 | return group.replace(/([=!:$\/()])/g, '\\$1'); 34 | } 35 | 36 | /** 37 | * Attach the keys as a property of the regexp. 38 | * 39 | * @param {RegExp} re 40 | * @param {Array} keys 41 | * @return {RegExp} 42 | */ 43 | var attachKeys = function (re, keys) { 44 | re.keys = keys; 45 | 46 | return re; 47 | }; 48 | 49 | /** 50 | * Normalize the given path string, returning a regular expression. 51 | * 52 | * An empty array should be passed in, which will contain the placeholder key 53 | * names. For example `/user/:id` will then contain `["id"]`. 54 | * 55 | * @param {(String|RegExp|Array)} path 56 | * @param {Array} keys 57 | * @param {Object} options 58 | * @return {RegExp} 59 | */ 60 | function pathtoRegexp (path, keys, options) { 61 | if (keys && !Array.isArray(keys)) { 62 | options = keys; 63 | keys = null; 64 | } 65 | 66 | keys = keys || []; 67 | options = options || {}; 68 | 69 | var strict = options.strict; 70 | var end = options.end !== false; 71 | var flags = options.sensitive ? '' : 'i'; 72 | var index = 0; 73 | 74 | if (path instanceof RegExp) { 75 | // Match all capturing groups of a regexp. 76 | var groups = path.source.match(/\((?!\?)/g) || []; 77 | 78 | // Map all the matches to their numeric keys and push into the keys. 79 | keys.push.apply(keys, groups.map(function (match, index) { 80 | return { 81 | name: index, 82 | delimiter: null, 83 | optional: false, 84 | repeat: false 85 | }; 86 | })); 87 | 88 | // Return the source back to the user. 89 | return attachKeys(path, keys); 90 | } 91 | 92 | if (Array.isArray(path)) { 93 | // Map array parts into regexps and return their source. We also pass 94 | // the same keys and options instance into every generation to get 95 | // consistent matching groups before we join the sources together. 96 | path = path.map(function (value) { 97 | return pathtoRegexp(value, keys, options).source; 98 | }); 99 | 100 | // Generate a new regexp instance by joining all the parts together. 101 | return attachKeys(new RegExp('(?:' + path.join('|') + ')', flags), keys); 102 | } 103 | 104 | // Alter the path string into a usable regexp. 105 | path = path.replace(PATH_REGEXP, function (match, escaped, prefix, key, capture, group, suffix, escape) { 106 | // Avoiding re-escaping escaped characters. 107 | if (escaped) { 108 | return escaped; 109 | } 110 | 111 | // Escape regexp special characters. 112 | if (escape) { 113 | return '\\' + escape; 114 | } 115 | 116 | var repeat = suffix === '+' || suffix === '*'; 117 | var optional = suffix === '?' || suffix === '*'; 118 | 119 | keys.push({ 120 | name: key || index++, 121 | delimiter: prefix || '/', 122 | optional: optional, 123 | repeat: repeat 124 | }); 125 | 126 | // Escape the prefix character. 127 | prefix = prefix ? '\\' + prefix : ''; 128 | 129 | // Match using the custom capturing group, or fallback to capturing 130 | // everything up to the next slash (or next period if the param was 131 | // prefixed with a period). 132 | capture = escapeGroup(capture || group || '[^' + (prefix || '\\/') + ']+?'); 133 | 134 | // Allow parameters to be repeated more than once. 135 | if (repeat) { 136 | capture = capture + '(?:' + prefix + capture + ')*'; 137 | } 138 | 139 | // Allow a parameter to be optional. 140 | if (optional) { 141 | return '(?:' + prefix + '(' + capture + '))?'; 142 | } 143 | 144 | // Basic parameter support. 145 | return prefix + '(' + capture + ')'; 146 | }); 147 | 148 | // Check whether the path ends in a slash as it alters some match behaviour. 149 | var endsWithSlash = path[path.length - 1] === '/'; 150 | 151 | // In non-strict mode we allow an optional trailing slash in the match. If 152 | // the path to match already ended with a slash, we need to remove it for 153 | // consistency. The slash is only valid at the very end of a path match, not 154 | // anywhere in the middle. This is important for non-ending mode, otherwise 155 | // "/test/" will match "/test//route". 156 | if (!strict) { 157 | path = (endsWithSlash ? path.slice(0, -2) : path) + '(?:\\/(?=$))?'; 158 | } 159 | 160 | // In non-ending mode, we need prompt the capturing groups to match as much 161 | // as possible by using a positive lookahead for the end or next path segment. 162 | if (!end) { 163 | path += strict && endsWithSlash ? '' : '(?=\\/|$)'; 164 | } 165 | 166 | return attachKeys(new RegExp('^' + path + (end ? '$' : ''), flags), keys); 167 | }; 168 | --------------------------------------------------------------------------------