Create gh-pages branch via GitHub

This commit is contained in:
Eric 2015-07-15 09:11:03 -07:00
parent fa6fcc5b87
commit 2db4007db6
2 changed files with 32 additions and 15 deletions

View File

@ -28,30 +28,47 @@
</ul>
</header>
<section>
<h3>
<a id="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages" aria-hidden="true"><span class="octicon octicon-link"></span></a>Welcome to GitHub Pages.</h3>
<h1>
<a id="libpipecolors" class="anchor" href="#libpipecolors" aria-hidden="true"><span class="octicon octicon-link"></span></a>libpipecolors</h1>
<p>This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here <a href="https://guides.github.com/features/mastering-markdown/">using GitHub Flavored Markdown</a>, select a template crafted by a designer, and publish. After your page is generated, you can check out the new <code>gh-pages</code> branch locally. If you're using GitHub for Mac or GitHub for Windows, simply sync your repository and you'll see the new branch.</p>
<p>This library parses input like <strong><em>printf</em></strong> and <strong><em>sprintf</em></strong> but instead of returning a boring string it will replace renegade bbs style pipecodes (|09) with their ansi equivelent.</p>
<h2>
<a id="it-has-two-functions--" class="anchor" href="#it-has-two-functions--" aria-hidden="true"><span class="octicon octicon-link"></span></a>It has two functions -</h2>
<div class="highlight highlight-c++"><pre><span class="pl-k">int</span> <span class="pl-en">pcprintf</span>(<span class="pl-k">const</span> <span class="pl-k">char</span> * format, ...);
<span class="pl-k">int</span> <span class="pl-en">pcsprintf</span>(<span class="pl-k">char</span> * str, <span class="pl-k">const</span> <span class="pl-k">char</span> * format, ...);</pre></div>
<h3>
<a id="designer-templates" class="anchor" href="#designer-templates" aria-hidden="true"><span class="octicon octicon-link"></span></a>Designer Templates</h3>
<a id="to-do" class="anchor" href="#to-do" aria-hidden="true"><span class="octicon octicon-link"></span></a>To Do</h3>
<p>We've crafted some handsome templates for you to use. Go ahead and click 'Continue to layouts' to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved.</p>
<ul>
<li>[x] Remove std::map requirement</li>
<li>[ ] Remove boost requirement without forcing <code>-std=c++11</code>
</li>
</ul>
<h3>
<a id="creating-pages-manually" class="anchor" href="#creating-pages-manually" aria-hidden="true"><span class="octicon octicon-link"></span></a>Creating pages manually</h3>
<h2>
<a id="example-use" class="anchor" href="#example-use" aria-hidden="true"><span class="octicon octicon-link"></span></a>Example use</h2>
<p>If you prefer to not use the automatic generator, push a branch named <code>gh-pages</code> to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.</p>
<div class="highlight highlight-c++"><pre>#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>cstdio<span class="pl-pds">&gt;</span></span>
#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>iostream<span class="pl-pds">&gt;</span></span>
#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>pipecolors.h<span class="pl-pds">&gt;</span></span>
<h3>
<a id="authors-and-contributors" class="anchor" href="#authors-and-contributors" aria-hidden="true"><span class="octicon octicon-link"></span></a>Authors and Contributors</h3>
<span class="pl-k">using</span> <span class="pl-k">namespace</span> <span class="pl-en">pipecolors</span><span class="pl-k">;</span>
<p>You can <a href="https://github.com/blog/821" class="user-mention">@mention</a> a GitHub username to generate a link to their profile. The resulting <code>&lt;a&gt;</code> element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (<a href="https://github.com/defunkt" class="user-mention">@defunkt</a>), PJ Hyett (<a href="https://github.com/pjhyett" class="user-mention">@pjhyett</a>), and Tom Preston-Werner (<a href="https://github.com/mojombo" class="user-mention">@mojombo</a>) founded GitHub.</p>
<span class="pl-k">int</span> <span class="pl-en">main</span>(<span class="pl-k">void</span>) {
<h3>
<a id="support-or-contact" class="anchor" href="#support-or-contact" aria-hidden="true"><span class="octicon octicon-link"></span></a>Support or Contact</h3>
<span class="pl-k">int</span> num = <span class="pl-c1">5</span>;
<span class="pl-k">const</span> <span class="pl-k">char</span>* str = <span class="pl-s"><span class="pl-pds">"</span>My number is<span class="pl-pds">"</span></span>;
<span class="pl-c1">pcprintf</span>(<span class="pl-s"><span class="pl-pds">"</span>|02<span class="pl-c1">%s</span> |10<span class="pl-c1">%d</span>|39<span class="pl-cce">\n</span><span class="pl-pds">"</span></span>, str, num);
<p>Having trouble with Pages? Check out our <a href="https://help.github.com/pages">documentation</a> or <a href="https://github.com/contact">contact support</a> and well help you sort it out.</p>
<span class="pl-k">return</span> <span class="pl-c1">0</span>;
}</pre></div>
<p>This would return <code>\x1b[0;32mMy number is \x1b[0;92m5\x1b[0;39m\n</code>,</p>
<p>Printing str in <em>dark green</em> and num in <em>light green</em></p>
</section>
<footer>
<p>This project is maintained by <a href="https://github.com/sk-5">sk-5</a></p>

View File

@ -1 +1 @@
{"name":"Libpipecolors","tagline":"linux color code library","body":"### Welcome to GitHub Pages.\r\nThis automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here [using GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/), select a template crafted by a designer, and publish. After your page is generated, you can check out the new `gh-pages` branch locally. If you're using GitHub for Mac or GitHub for Windows, simply sync your repository and you'll see the new branch.\r\n\r\n### Designer Templates\r\nWe've crafted some handsome templates for you to use. Go ahead and click 'Continue to layouts' to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved.\r\n\r\n### Creating pages manually\r\nIf you prefer to not use the automatic generator, push a branch named `gh-pages` to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.\r\n\r\n### Authors and Contributors\r\nYou can @mention a GitHub username to generate a link to their profile. The resulting `<a>` element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.\r\n\r\n### Support or Contact\r\nHaving trouble with Pages? Check out our [documentation](https://help.github.com/pages) or [contact support](https://github.com/contact) and well help you sort it out.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
{"name":"Libpipecolors","tagline":"linux color code library","body":"# libpipecolors\r\n\r\n\r\nThis library parses input like **_printf_** and **_sprintf_** but instead of returning a boring string it will replace renegade bbs style pipecodes (|09) with their ansi equivelent.\r\n \r\n## It has two functions -\r\n```c++\r\nint pcprintf(const char * format, ...);\r\nint pcsprintf(char * str, const char * format, ...);\r\n```\r\n### To Do\r\n- [x] Remove std::map requirement\r\n- [ ] Remove boost requirement without forcing `-std=c++11`\r\n\r\n## Example use\r\n\r\n```c++\r\n#include <cstdio>\r\n#include <iostream>\r\n#include <pipecolors.h>\r\n\r\nusing namespace pipecolors;\r\n\r\nint main(void) {\r\n\r\n int num = 5;\r\n const char* str = \"My number is\";\r\n pcprintf(\"|02%s |10%d|39\\n\", str, num);\r\n\r\n return 0;\r\n}\r\n```\r\nThis would return `\\x1b[0;32mMy number is \\x1b[0;92m5\\x1b[0;39m\\n`,\r\n\r\nPrinting str in <span style=\"color:#009900;\">*dark green*</span> and num in <span style=\"color:#00FF00;\">*light green*</span>\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}