Skip to content

Commit 21c03f1

Browse files
authored
Merge pull request #396 from PHPCSStandards/docs-website/update-configuration-and-content
Docs website: update for release of PHPCSUtils 1.0.0-alpha4
2 parents ce90dbf + ba0f993 commit 21c03f1

File tree

93 files changed

+25547
-8039
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+25547
-8039
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ vendor/
44
/composer.lock
55
/.phpcs.xml
66
/phpcs.xml
7+
/.phpdoc.xml
78
/phpdoc.xml
89
/phpunit.xml
910
/.phpunit.result.cache

phpdoc.dist.xml renamed to .phpdoc.xml.dist

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
configVersion="3"
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xmlns="https://www.phpdoc.org"
6-
xsi:noNamespaceSchemaLocation="https://docs.phpdoc.org/latest/phpdoc.xsd"
6+
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/phpDocumentor/phpDocumentor/master/data/xsd/phpdoc.xsd"
77
>
88

99
<title>PHPCSUtils</title>
@@ -19,6 +19,15 @@
1919
<path>phpcsutils-autoload.php</path>
2020
<path>PHPCSUtils</path>
2121
</source>
22+
<ignore hidden="true" symlinks="true">
23+
<path>PHPCSUtils/Internal/**/*</path>
24+
</ignore>
25+
<visibility>public</visibility>
26+
<visibility>protected</visibility>
27+
<ignore-tags>
28+
<ignore-tag>codeCoverageIgnore</ignore-tag>
29+
<ignore-tag>phpcs</ignore-tag>
30+
</ignore-tags>
2231
</api>
2332
</version>
2433

docs/_config.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,34 @@ twitter:
3333
author:
3434
twitter: jrf_nl
3535

36-
exclude: ['CNAME', '.gitignore', 'Gemfile', '*.bak', '*.orig', 'vendor']
36+
# Needed so the select HTML tags do not get removed *sigh*
37+
commonmark:
38+
options: ["SMART", "FOOTNOTES", "UNSAFE"]
39+
extensions: ["strikethrough", "autolink", "table"]
40+
41+
# Files to exclude when generating the site.
42+
exclude:
43+
- .sass-cache/
44+
- .jekyll-cache/
45+
- gemfiles/
46+
- Gemfile
47+
- Gemfile.lock
48+
- node_modules/
49+
- vendor/bundle/
50+
- vendor/cache/
51+
- vendor/gems/
52+
- vendor/ruby/
53+
- CNAME
54+
- CONTRIBUTING.md
55+
- LICENSE
56+
- README.md
57+
- apigen.neon
58+
- buildtool.py
59+
- Vagrantfile
60+
- vagrant-provision.sh
61+
- .gitignore
62+
- .github
63+
- .jekyll-metadata
64+
- '*.bak'
65+
- '*.orig'
66+
- runit.bat

docs/_layouts/default.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@
1616
<div class="wrapper">
1717
<header>
1818
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
19-
19+
2020
{% if site.logo %}
2121
<img src="{{site.logo | absolute_url }}" alt="Logo" />
2222
{% endif %}
2323

2424
<p>{{ site.description | default: site.github.project_tagline }}</p>
2525

26-
{% if site.github.is_project_page %}
27-
<p class="view"><a href="{{ site.github.repository_url }}">Visit the Project on GitHub <small>{{ site.github.repository_nwo }}</small></a></p>
28-
{% endif %}
29-
3026
<p class="docs"><a href="{{ "/phpdoc/index.html" | absolute_url }}">Read the Documentation</a></p>
3127

3228
<div class="install">
3329
<a href="https://packagist.org/packages/{{ site.phpcsutils.packagist }}">Install using Composer:</a><br>
3430
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>composer require <span class="s">{{ site.phpcsutils.packagist }}</span></code></pre></div></div>
3531
</div>
3632

33+
{% if site.github.latest_release.tag_name %}
34+
<p>Latest release: <strong>{{ site.github.latest_release.tag_name }}</strong></p>
35+
{% endif %}
36+
3737
{% if site.show_downloads %}
3838
<ul class="downloads">
3939
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
@@ -42,9 +42,9 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repo
4242
</ul>
4343
{% endif %}
4444

45-
<p><a href="https://twitter.com/share" class="twitter-share-button" data-related="{{ site.twitter.username }}" data-count="none" data-hashtags="{{ site.twitter.hashtags }}">Tweet about it</a></p>
45+
<p class="view"><a href="{{ site.github.repository_url }}">Visit the Project on GitHub <small>{{ site.github.repository_nwo }}</small></a></p>
4646

47-
</header>
47+
<p><a href="https://twitter.com/share" class="twitter-share-button" data-related="{{ site.twitter.username }}" data-count="none" data-hashtags="{{ site.twitter.hashtags }}">Tweet about it</a></p>
4848

4949
</header>
5050
<section>

docs/assets/css/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ p code {
8989
}
9090

9191
/* FAQ */
92-
#faq h4 {
92+
.faq h3 {
9393
font-size: 18px;
9494
line-height: 1.1;
9595
margin-top: 0;
9696
}
9797

98-
#faq h4::first-letter, #faq h4 + p::first-letter {
98+
.faq h3::first-letter, .faq h3 + p::first-letter {
9999
color:#267CB9;
100100
font-weight: bold;
101101
}

docs/index.md

Lines changed: 66 additions & 93 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)