repo-template
authorMichael Wallner <mike@php.net>
Tue, 29 Sep 2015 10:33:13 +0000 (12:33 +0200)
committerMichael Wallner <mike@php.net>
Tue, 29 Sep 2015 10:33:13 +0000 (12:33 +0200)
.editorconfig [new file with mode: 0644]
CONTRIBUTING.md [new file with mode: 0644]
README.md [new file with mode: 0644]
composer.json
composer.lock [deleted file]
openshift.mk [deleted file]
public/favicon.ico [new file with mode: 0644]
public/favicon.svg [new file with mode: 0644]
views/layout.phtml

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..84c9933
--- /dev/null
@@ -0,0 +1,16 @@
+; see http://editorconfig.org
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+charset = utf-8
+trim_trailing_whitespace = true
+
+[*.md]
+trim_trailing_whitespace = false
+
+[*.json]
+indent_style = space
+indent_size = 4
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644 (file)
index 0000000..968bd44
--- /dev/null
@@ -0,0 +1,39 @@
+# Contributor Code of Conduct
+
+As contributors and maintainers of this project, and in the interest of
+fostering an open and welcoming community, we pledge to respect all people who
+contribute through reporting issues, posting feature requests, updating
+documentation, submitting pull requests or patches, and other activities.
+
+We are committed to making participation in this project a harassment-free
+experience for everyone, regardless of level of experience, gender, gender
+identity and expression, sexual orientation, disability, personal appearance,
+body size, race, ethnicity, age, religion, or nationality.
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery
+* Personal attacks
+* Trolling or insulting/derogatory comments
+* Public or private harassment
+* Publishing other's private information, such as physical or electronic
+  addresses, without explicit permission
+* Other unethical or unprofessional conduct.
+
+Project maintainers have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct. By adopting this Code of Conduct, project
+maintainers commit themselves to fairly and consistently applying these
+principles to every aspect of managing this project. Project maintainers who do
+not follow or enforce the Code of Conduct may be permanently removed from the
+project team.
+
+This code of conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community.
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported by opening an issue or contacting one or more of the project maintainers.
+
+This Code of Conduct is adapted from the
+[Contributor Covenant](http://contributor-covenant.org), version 1.2.0,
+available at http://contributor-covenant.org/version/1/2/0/.
diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..61e37ae
--- /dev/null
+++ b/README.md
@@ -0,0 +1,14 @@
+# mdref
+
+Naive Markdown Documentation browser. Live at https://mdref.m6w6.name/.
+
+## License
+
+mdref is licensed under the 2-Clause-BSD license, which can be found in
+the accompanying [LICENSE](./LICENSE) file.
+
+## Contributing
+
+All forms of contribution are welcome! Please see the bundled
+[CONTRIBUTING](./CONTRIBUTING.md) note for the general principles followed.
+
index 726f6d3cf881e05e1c0ef046f1c12ae059adaf44..9ff5f9c1edf34dd2e060f3e564ddbf8d87320a67 100644 (file)
@@ -2,4 +2,10 @@
     "name": "m6w6/mdref",
     "description": "Quick Markdown Reference Browser",
     "license": "BSD-2-Clause",
+    "authors": [
+        {
+            "name": "Michael Wallner",
+            "email": "mike@php.net"
+        }
+    ]
 }
diff --git a/composer.lock b/composer.lock
deleted file mode 100644 (file)
index 9336059..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-{
-    "_readme": [
-        "This file locks the dependencies of your project to a known state",
-        "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
-    ],
-    "hash": "6fce67cace9f9c420e3ef4784880df8a",
-    "packages": [
-        {
-            "name": "m6w6/autocracy",
-            "version": "dev-master",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/m6w6/autocracy.git",
-                "reference": "ccf41b290a1ea26eae5e427c9636a2235d089bd0"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/m6w6/autocracy/zipball/ccf41b290a1ea26eae5e427c9636a2235d089bd0",
-                "reference": "ccf41b290a1ea26eae5e427c9636a2235d089bd0",
-                "shasum": ""
-            },
-            "type": "library",
-            "autoload": {
-                "psr-0": {
-                    "http\\Controller": "lib"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-2-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Michael Wallner",
-                    "email": "mike@php.net"
-                }
-            ],
-            "description": "http\\Controller preserves your autocracy",
-            "homepage": "http://github.com/m6w6/autocracy",
-            "keywords": [
-                "controller",
-                "http",
-                "pecl",
-                "pecl_http"
-            ],
-            "time": "2013-12-18 14:21:23"
-        }
-    ],
-    "packages-dev": [
-
-    ],
-    "aliases": [
-
-    ],
-    "minimum-stability": "stable",
-    "stability-flags": {
-        "m6w6/autocracy": 20
-    },
-    "platform": [
-
-    ],
-    "platform-dev": [
-
-    ]
-}
diff --git a/openshift.mk b/openshift.mk
deleted file mode 100644 (file)
index 0ecaa0f..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-PHP = $(OPENSHIFT_DATA_DIR)/php/bin/php
-
-all: vendor
-
-.PHONY: all
-
-vendor: composer.lock
-       $(PHP) composer.phar install
-       mkdir vendor 2>/dev/null || touch vendor
-
-composer.lock: composer.json
-       $(PHP) composer.phar update
-
-composer.json: composer.phar
-       $(PHP) composer.phar validate
-
-composer.phar:
-       curl https://getcomposer.org/installer | $(PHP)
diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644 (file)
index 0000000..d28351c
Binary files /dev/null and b/public/favicon.ico differ
diff --git a/public/favicon.svg b/public/favicon.svg
new file mode 100644 (file)
index 0000000..ae474e7
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="480" height="480">
+    <desc iVinci="yes" version="4.6" gridStep="20" showGrid="no" snapToGrid="no" codePlatform="0"/>
+    <g id="Layer1" name="Layer 1" opacity="1">
+        <g id="Shape1">
+            <desc shapeID="1" type="0" basicInfo-basicType="1" basicInfo-roundedRectRadius="12" basicInfo-polygonSides="6" basicInfo-starPoints="5" bounding="rect(-163.5,-204.5,327,409)" text="" font-familyName="Helvetica" font-pixelSize="256" font-bold="1" font-underline="0" font-alignment="1" strokeStyle="0" markerStart="0" markerEnd="0" shadowEnabled="0" shadowOffsetX="0" shadowOffsetY="2" shadowBlur="4" shadowOpacity="160" blurEnabled="0" blurRadius="4" transform="matrix(1.46789,0,0,1.17359,240,240)" pers-center="0,0" pers-size="0,0" pers-start="0,0" pers-end="0,0" locked="0" mesh="" flag=""/>
+            <path id="shapePath1" d="M-1.52588e-05,-1.52588e-05 L480,-1.52588e-05 L480,480 L-1.52588e-05,480 L-1.52588e-05,-1.52588e-05 Z" style="stroke:none;fill-rule:evenodd;fill:#000000;fill-opacity:1;"/>
+        </g>
+        <g id="Shape2">
+            <desc shapeID="2" type="2" basicInfo-basicType="0" basicInfo-roundedRectRadius="12" basicInfo-polygonSides="6" basicInfo-starPoints="5" bounding="rect(-240,-240,480,480)" text="R" font-familyName="Helvetica" font-pixelSize="256" font-bold="1" font-underline="0" font-alignment="1" strokeStyle="0" markerStart="0" markerEnd="0" shadowEnabled="0" shadowOffsetX="0" shadowOffsetY="2" shadowBlur="4" shadowOpacity="160" blurEnabled="0" blurRadius="4" transform="matrix(1,0,0,1,240,240)" pers-center="0,0" pers-size="0,0" pers-start="0,0" pers-end="0,0" locked="0" mesh="" flag=""/>
+            <path id="shapePath2" d="M205.563,156.875 L205.563,206.375 L249.188,206.375 C257.854,206.375 264.354,205.375 268.688,203.375 C276.354,199.875 280.188,192.958 280.188,182.625 C280.188,171.458 276.479,163.958 269.062,160.125 C264.896,157.958 258.646,156.875 250.313,156.875 L205.563,156.875 M288.125,129.625 C295.083,132.542 300.979,136.833 305.812,142.5 C309.812,147.167 312.979,152.333 315.312,158 C317.646,163.667 318.812,170.125 318.812,177.375 C318.812,186.125 316.604,194.729 312.188,203.188 C307.771,211.646 300.479,217.625 290.312,221.125 C298.812,224.542 304.833,229.396 308.375,235.688 C311.917,241.979 313.688,251.583 313.688,264.5 L313.688,276.875 C313.688,285.292 314.021,291 314.688,294 C315.688,298.75 318.021,302.25 321.688,304.5 L321.688,309.125 L279.312,309.125 C278.146,305.042 277.312,301.75 276.812,299.25 C275.812,294.083 275.271,288.792 275.188,283.375 L274.938,266.25 C274.771,254.5 272.625,246.667 268.5,242.75 C264.375,238.833 256.646,236.875 245.313,236.875 L205.563,236.875 L205.563,309.125 L167.938,309.125 L167.938,124.875 L258.312,124.875 C271.229,125.125 281.167,126.708 288.125,129.625 Z" style="stroke:none;fill-rule:nonzero;fill:#ffffff;fill-opacity:1;"/>
+        </g>
+    </g>
+</svg>
index f3bcbf792e8a0a1da0794319f39d42dd6a5f19fd..54c0d56a328863c7d6a2b25070fbb4027cffb004 100644 (file)
@@ -15,8 +15,9 @@
                        <meta http-equiv="Content-Location" content="<?= $baseUrl . $ref ?>">
                        <link rel="stylesheet" href="index.css">
                <?php endif; ?>
-               
+
                <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
+               <link rel="shortcut icon" href="<?= $baseUrl . "favicon.ico" ?>">
        </head>
        <body>
                <div class="page">