{"id":13395461,"url":"https://github.com/jeromegn/DocumentUp","last_synced_at":"2025-03-13T20:32:16.716Z","repository":{"id":2283564,"uuid":"3240891","full_name":"jeromegn/DocumentUp","owner":"jeromegn","description":"Pretty documentation generator for Github projects with proper Readme.","archived":false,"fork":false,"pushed_at":"2022-12-13T20:33:55.000Z","size":1018,"stargazers_count":885,"open_issues_count":28,"forks_count":90,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-07-31T17:23:59.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://documentup.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeromegn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-22T17:41:35.000Z","updated_at":"2024-04-09T20:09:19.000Z","dependencies_parsed_at":"2023-01-11T16:09:07.410Z","dependency_job_id":null,"html_url":"https://github.com/jeromegn/DocumentUp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromegn%2FDocumentUp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromegn%2FDocumentUp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromegn%2FDocumentUp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromegn%2FDocumentUp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeromegn","download_url":"https://codeload.github.com/jeromegn/DocumentUp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243478480,"owners_count":20297268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T17:02:00.226Z","updated_at":"2025-03-13T20:32:16.696Z","avatar_url":"https://github.com/jeromegn.png","language":"Ruby","readme":"![DocumentUp](app/assets/images/logo.png)\n\n**This site has been generated with DocumentUp** (eat your own dog food, people)\n\nAutomatically generated documentation sites for your markdown files! There are various ways of getting your documentation going:\n\n* [Hosted](#hosted)\n* [gh-pages](#gh-pages)\n\n## Hosted\n\nDocumentUp hosts your documentation sites. Just visit `http://documentup.com/username/repository` to generate a site from your `README.md`.\n\nRecommended if you have a public Github repository.\n\n### CNAME\n\nYou can point a CNAME to `project.username.documentup.com`.\n\n### Post-Receive Hook\n\nIf you want your readme to be recompiled, please add a [Post-Receive Hook](http://help.github.com/post-receive-hooks/) to your Github repository pointing to: `http://documentup.com/recompile`\n\n### Manual Recompile\n\nVisit `http://documentup.com/username/repository/__recompile` to manually tell the server to recompile your readme.\n\nUseful when changes are made to the stylesheets on the server but the compilation hasn't been triggered for a while.\n\n### Configuration\n\nAdd a `.documentup.yml` dotfile file to the root of your repository. Refer to the [options](#options) section below for its contents. Feel free to consult this repository's [`.documentup.yml`](.documentup.yml)\n\n### JSONP example with jQuery\n\n```javascript\n$.ajax({\n  url: \"http://documentup.com/compiled\",\n  dataType: \"jsonp\",\n  data: {\n    content: \"# test\",\n    name: \"Test JSONP!\"\n  },\n  success: function(resp){\n    // `status` is always provided\n    if (resp.status == 200) {\n      // Write to your document\n      document.open();\n      document.write(resp.html);\n      document.close();\n    }\n  }\n});\n```\n\n## gh-pages\n\nFor those wanting to stay within the comfort of their gh-pages branch, it's still possible by using an `index.html` file similar to this:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript src=\"documentup.min.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n      DocumentUp.document(\"username/repository\");\n    \u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\u003c/body\u003e\n\u003c/html\u003e\n```\n\nMake sure to change the `\"username/repository\"` to the repository's name and user's username.\n\nUse the [`documentup.min.js`](public/documentup.min.js) file in this repository, not the one what used to be on cdnjs.com, it's deprecated.\n\n### Configuration\n\n`DocumentUp.document` accepts either a String or an Object representing your desired configuration. If an object is used, remember to add a `repo` option containing the path `\"username/repository\"` to your github repository.\n\nAll options detailed in the [options](#options) section are available.\n\nIn addition to those, one special option is available to \"gh-pages version\" of DocumentUp:\n\n**afterRender** (Function)  \nA function to be executed after the document has been replaced with the compiled HTML.\n\n### Example\n\n```javascript\nDocumentUp.document({\n  repo:  \"jeromegn/documentup\",\n  name: \"DocumentUp\",\n  twitter: [\n    \"jeromegn\",\n    \"DocumentUp\"\n  ],\n  afterRender: function(){\n    alert(\"rendered\");\n  }\n});\n```\n\n### What this script does\n\nIt does what's written in the JSONP section, without the jQuery dependency. It uses a endpoint like: `http://documentup.com/username/repository?callback=` to fetch the cached copy of the repository and then replaces the page's html with the generated documentation.\n\n## Formatting guide\n\nJust like you normally would. DocumentUp also supports \"Github Flavored Markdown\" and we recommend you use it for syntax highlighting.\n\nIt doesn't support tables as it is supported on Github, but you can use inline HTML.\n\nh1's (# in markdown) will appear as first level navigation in the sidebar while h2's (##) will appear under them as sub-navigation.\n\nExample:\n\n```markdown\n# Project name / Title (won't appear in the sidebar)\n\nSome intro text if you want.\n\n## Top level-navigation\n\n### Sub-navigation\n\n#### This wouldn't show up in the sidebar\n```\n\n## Options\n\n### name\n\n*String, default: repository name*\n\nName of your project. It'll appear in the header of the sidebar. Defaults to the `repository` substring of the `repo` option.\n\n### color\n\n*String, default: \"#336699\"*\n\nCSS-like color representing the color for the links both in the sidebar and the content.\n\n### theme\n\n*String, default: null*\n\nName of the theme to use. Refer to the [themes](#themes) sections.\n\n### issues\n\n*Boolean, default: true*\n\nAdds a link to the sidebar for the issues tab of the repository if `true`. Also accepts a string if your issues are managed elsewhere.\n\n### travis\n\n*Boolean, default: false*\n\nIndicate if the project is being tested by [Travis-CI](http://travis-ci.org/). If `true`, it'll add the small travis badge in the sidebar.\n\n### twitter\n\n*String / Array of strings, default: null*\n\nAdd follow buttons for one or more Twitter accounts to your sidebar. Useful to gather followers.\n\n### google_analytics\n\n*String default: null*\n\nThis is your Google Analytics \"UA\" unique ID. Adds GA tracking to your generated documentation.  \ne.g.: \"UA-5201171-14\"\n\n## Themes\n\n### Default\n\nThe one you're looking at now.\n\n### V1\n\nFor the nostalgic. Use `v1` in your `theme` config option.\n\n![V1](app/assets/images/v1.png)\n\n## Roadmap\n\n* Private repositories\n* Multi-page aggregation\n\n## Thank you\n\n* Thanks to [Jean-Marc Denis](http://jeanmarcdenis.me/) for the freely downloadable bow tie I used in the logo.\n\n## Changelog\n\n#### 2.0 (June 15, 2015)\n\nFull rewrite of the app:\n- Deprecated on-demand `/compiled` endpoint\n- Renamed manual recompile endpoint to `username/repo/__recompile`\n- Uses Ruby on Rails\n- Uses SASS\n- Laid the foundation for multiple pages (it works right now, just not linked or explained, needs some work)\n- Uses PostgreSQL\n\n#### Hosted version (Feb 2, 2012)\n\nVersioning is going to be difficult now since this is now a service. Deployment will be continuous.\n\n#### 0.1.1 (Jan 26, 2012)\n\n* Files now parsed in UTF-8\n* Namespaced repositories in localStorage (thanks to [tbranyen](https://github.com/tbranyen))\n* A few README fixes\n\n#### 0.1.0 (Jan 25, 2012)\n\n* Initial release\n\n## License\n\nCopyright (c) 2015 Jerome Gravel-Niquet\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["Ruby","Documentation Tools","others"],"sub_categories":["Documentation Generators"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromegn%2FDocumentUp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeromegn%2FDocumentUp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromegn%2FDocumentUp/lists"}