Skip to content

Commit 9fadfb4

Browse files
committed
Add phpdoc component page stubs, add common pages and upgrade docker image
1 parent 1027ee6 commit 9fadfb4

File tree

11 files changed

+458
-26
lines changed

11 files changed

+458
-26
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
# Replace HI with the ID of the instance in capital letters
1818
ARTIFACT: webHelpTL2-all.zip
1919
# Writerside docker image version
20-
DOCKER_VERSION: '242.21870'
20+
DOCKER_VERSION: '243.21565'
2121
ALGOLIA_ARTIFACT: 'algolia-indexes-TL.zip'
2222
ALGOLIA_APP_NAME: 'CZXH99BXN1'
2323
ALGOLIA_INDEX_NAME: 'Writerside'

Writerside/cfg/glossary.xml

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
<!DOCTYPE terms SYSTEM "https://resources.jetbrains.com/writerside/1.0/glossary.dtd">
33
<terms>
44
<term name="FQN">Fully Qualified Name</term>
5-
<term name="Identifier">A sequence that begins with a letter and contains letters,
6-
numbers, underscores, and dashes.</term>
5+
<term name="Identifier">A sequence that begins with a letter and contains
6+
letters, numbers, underscores, and dashes.</term>
7+
<term name="publicity-or-privacy">The use of a work free of known copyright
8+
restrictions may be otherwise regulated or limited. The work or its use
9+
may be subject to personal data protection laws, publicity, image, or
10+
privacy rights that allow a person to control how their voice, image or
11+
likeness is used, or other restrictions or limitations under applicable
12+
law.</term>
13+
<term name="endorsement">In some jurisdictions, wrongfully implying that an
14+
author, publisher or anyone else endorses your use of a work may be
15+
unlawful.</term>
716
</terms>

Writerside/cfg/static/custom.css

+4
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ p + .code-collapse__wrapper,
2121
.code-block__wrapper + .code-collapse__wrapper,
2222
.code-block__wrapper + .code-block__wrapper {
2323
margin-top: 12px !important;
24+
}
25+
26+
.starting-page-card {
27+
border-radius: 7px;
2428
}

Writerside/labels.list

+22-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,36 @@
55
<primary-label href="https://packagist.org/packages/type-lang/parser"
66
id="parser-component" name="type-lang/parser" short-name="c" color="purple">
77
The implementation of the functionality available for installation
8-
of "type-lang/parser" component
8+
of "type-lang/parser" component.
99
</primary-label>
1010
<primary-label href="https://packagist.org/packages/type-lang/printer"
1111
id="printer-component" name="type-lang/printer" short-name="c" color="purple">
1212
The implementation of the functionality available for installation
13-
of "type-lang/printer" component
13+
of "type-lang/printer" component.
14+
</primary-label>
15+
<primary-label href="https://packagist.org/packages/type-lang/phpdoc"
16+
id="phpdoc-component" name="type-lang/phpdoc" short-name="c" color="purple">
17+
The implementation of the functionality available for installation
18+
of "type-lang/phpdoc" component.
19+
</primary-label>
20+
<primary-label href="https://packagist.org/packages/type-lang/phpdoc-standard-tags"
21+
id="phpdoc-standard-component" name="type-lang/phpdoc-standard-tags" short-name="e" color="strawberry">
22+
The implementation of the functionality available for installation
23+
of "type-lang/phpdoc-standard-tags" component.
24+
25+
This is an extension to the core "type-lang/phpdoc" component.
26+
</primary-label>
27+
<primary-label href="https://packagist.org/packages/type-lang/phpdoc-template-tags"
28+
id="phpdoc-template-component" name="type-lang/phpdoc-template-tags" short-name="e" color="strawberry">
29+
The implementation of the functionality available for installation
30+
of "type-lang/phpdoc-template-tags" component.
31+
32+
This is an extension to the core "type-lang/phpdoc" component.
1433
</primary-label>
1534
<primary-label href="https://packagist.org/packages/type-lang/reader"
1635
id="reader-component" name="type-lang/reader" short-name="c" color="purple">
1736
The implementation of the functionality available for installation
18-
of "type-lang/reader" component
37+
of "type-lang/reader" component.
1938
</primary-label>
2039
<primary-label id="experimental" name="Special Feature" short-name="Extra" color="tangerine">
2140
This is a unique functionality that is not supported by other popular

Writerside/tl.tree

+45-20
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,53 @@
4343
</toc-element>
4444
</toc-element>
4545

46-
<toc-element topic="parser.md" toc-title="Parser">
47-
<toc-element topic="features.md"
48-
toc-title="Feature toggling"/>
49-
<toc-element topic="tolerant-mode.md"
50-
toc-title="Tolerant mode"/>
51-
<toc-element topic="visitors.md">
52-
<toc-element topic="class-name-matcher-visitor.md"/>
53-
<toc-element topic="stream-dumper-visitor.md"/>
54-
<toc-element topic="string-dumper-visitor.md"/>
55-
<toc-element topic="type-map-visitor.md"/>
46+
<toc-element toc-title="Components">
47+
<toc-element topic="parser.md" toc-title="Parser">
48+
<toc-element topic="features.md"
49+
toc-title="Feature toggling"/>
50+
<toc-element topic="tolerant-mode.md"
51+
toc-title="Tolerant mode"/>
52+
<toc-element topic="visitors.md">
53+
<toc-element topic="class-name-matcher-visitor.md"/>
54+
<toc-element topic="stream-dumper-visitor.md"/>
55+
<toc-element topic="string-dumper-visitor.md"/>
56+
<toc-element topic="type-map-visitor.md"/>
57+
</toc-element>
58+
<toc-element toc-title="GitHub" href="https://github.com/php-type-language/parser" />
59+
<toc-element toc-title="Packagist" href="https://packagist.org/packages/type-lang/parser" />
5660
</toc-element>
57-
<toc-element toc-title="GitHub" href="https://github.com/php-type-language/parser" />
58-
<toc-element toc-title="Packagist" href="https://packagist.org/packages/type-lang/parser" />
59-
</toc-element>
6061

61-
<toc-element topic="printer.md" toc-title="Printer">
62-
<toc-element toc-title="GitHub" href="https://github.com/php-type-language/printer" />
63-
<toc-element toc-title="Packagist" href="https://packagist.org/packages/type-lang/printer" />
64-
</toc-element>
62+
<toc-element topic="phpdoc.md" toc-title="PHPDoc" hidden="true">
63+
<toc-element toc-title="Extensions">
64+
<toc-element topic="phpdoc-standard-tags.md"
65+
toc-title="Standard tags">
66+
<toc-element toc-title="GitHub" href="https://github.com/php-type-language/phpdoc-standard-tags" />
67+
<toc-element toc-title="Packagist" href="https://packagist.org/packages/type-lang/phpdoc-standard-tags" />
68+
</toc-element>
69+
<toc-element topic="phpdoc-template-tags.md"
70+
toc-title="Template (generic) tags">
71+
<toc-element toc-title="GitHub" href="https://github.com/php-type-language/phpdoc-template-tags" />
72+
<toc-element toc-title="Packagist" href="https://packagist.org/packages/type-lang/phpdoc-template-tags" />
73+
</toc-element>
74+
</toc-element>
75+
<toc-element toc-title="GitHub" href="https://github.com/php-type-language/phpdoc" />
76+
<toc-element toc-title="Packagist" href="https://packagist.org/packages/type-lang/phpdoc" />
77+
</toc-element>
78+
79+
<toc-element topic="printer.md" toc-title="Printer">
80+
<toc-element toc-title="GitHub" href="https://github.com/php-type-language/printer" />
81+
<toc-element toc-title="Packagist" href="https://packagist.org/packages/type-lang/printer" />
82+
</toc-element>
6583

66-
<toc-element topic="reader.md" toc-title="Reader">
67-
<toc-element toc-title="GitHub" href="https://github.com/php-type-language/reader" />
68-
<toc-element toc-title="Packagist" href="https://packagist.org/packages/type-lang/reader" />
84+
<toc-element topic="reader.md" toc-title="Reader">
85+
<toc-element toc-title="GitHub" href="https://github.com/php-type-language/reader" />
86+
<toc-element toc-title="Packagist" href="https://packagist.org/packages/type-lang/reader" />
87+
</toc-element>
6988
</toc-element>
89+
90+
<toc-element topic="release-notes.md" />
91+
<toc-element topic="contribution.md" />
92+
<toc-element topic="license.md"
93+
toc-title="License" />
94+
7095
</instance-profile>

Writerside/topics/contribution.md

+177
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# Contribution Guide
2+
3+
<show-structure for="chapter" depth="2"/>
4+
5+
## Code of Conduct
6+
7+
The TypeLang code of conduct is derived from the Ruby code of conduct.
8+
Any violations of the code of conduct may be reported
9+
to Kirill Nesmeyanov ([[email protected]](mailto:[email protected])).
10+
11+
- Participants will be tolerant of opposing views.
12+
13+
- Participants must ensure that their language and actions are free of
14+
personal attacks and disparaging personal remarks.
15+
16+
- When interpreting the words and actions of others, participants
17+
should always assume good intentions.
18+
19+
- Behavior which can be reasonably considered harassment will not be tolerated.
20+
21+
Unlike such PHP projects as Symfony, Composer, Laminas, JMS, etc., we **do not
22+
violate** such rules and guarantee the absence of nationalistic and political
23+
oppression.
24+
25+
**Open Source Software (OSS) is not a place for settling personal
26+
relationships and propaganda.**
27+
28+
We pledge to act and interact in ways that contribute to an open, welcoming,
29+
diverse, inclusive, and healthy community.
30+
31+
## Bugs
32+
33+
Whenever you find a bug in TypeLang Components, we kindly ask you to report it.
34+
It helps us make a better code.
35+
36+
<warning>
37+
If you think you've found a security issue, please use
38+
the <a href="contribution.md#security-issues">special procedure instead</a>.
39+
</warning>
40+
41+
You may submit a bug report using GitHub Issues.
42+
- [Documentation](https://github.com/php-type-language/docs/issues)
43+
- [Language Parser Component (type-lang/parser)](https://github.com/php-type-language/parser/issues)
44+
- [Mapper Component (type-lang/mapper)](https://github.com/php-type-language/mapper/issues)
45+
- [Printer Component (type-lang/printer)](https://github.com/php-type-language/printer/issues)
46+
- [Reader Component (type-lang/reader)](https://github.com/php-type-language/reader/issues)
47+
- [PHPDoc Parser Component (type-lang/phpdoc)](https://github.com/php-type-language/phpdoc/issues)
48+
- [PHPDoc Standard Tags (type-lang/phpdoc-standard-tags)](https://github.com/php-type-language/phpdoc-standard-tags/issues)
49+
- [PHPDoc Template Tags (type-lang/phpdoc-template-tags)](https://github.com/php-type-language/phpdoc-template-tags/issues)
50+
51+
Please follow some basic rules:
52+
53+
- Use the title field to clearly describe the issue;
54+
- Describe the steps needed to reproduce the bug with short code examples;
55+
- Give as much detail as possible about your environment (OS, PHP version,
56+
component version, enabled extensions, ...);
57+
- If there was an exception, and you would like to report it, it is valuable to
58+
provide the stack trace for that exception.
59+
> Do not provide it as a screenshot, since search engines will not be able to
60+
> index the text inside them. Same goes for errors encountered in a terminal,
61+
> do not take a screenshot, but copy/paste the contents.
62+
63+
> Be wary that stack traces may contain **sensitive information**, and if
64+
> it is the case, be sure to redact them prior to posting your stack trace.
65+
{style="warning"}
66+
67+
68+
## Security Issues
69+
70+
If you think that you have found a security issue in TypeLang Component,
71+
don't use the bug tracker and don't publish it publicly. Instead, all security
72+
issues must be sent to [[email protected]](mailto:[email protected]).
73+
74+
### Bug Bounty
75+
76+
This is an Open-Source project where most of the work is done by volunteers.
77+
We appreciate that developers are trying to find security issues in TypeLang
78+
Components and report them responsibly, but we are currently unable to
79+
pay bug bounties.
80+
81+
## Pull Request
82+
83+
Before you start, you should be aware that all the code you are going to
84+
submit must be released under the [MIT license](https://opensource.org/license/mit).
85+
86+
A pull request (or "merge request"), "PR" for short, is the best way to
87+
provide a bug fix or to propose enhancements to TypeLang Components.
88+
89+
<procedure title="#1: Setup your Environment">
90+
<step>Git;</step>
91+
<step>PHP 8.1 or above.</step>
92+
</procedure>
93+
94+
<procedure title="#2: Get the Source Code">
95+
<step>
96+
Create a <a href="https://github.com">GitHub</a> account and sign in;
97+
</step>
98+
<step>
99+
Fork an expected repository (click on <shortcut>Fork</shortcut> button);
100+
</step>
101+
<step>
102+
Uncheck the "Copy the X.Y branch only";
103+
</step>
104+
<step>
105+
After the "forking action" has completed, clone your fork locally
106+
(this will create a component directory):
107+
<code-block lang="Bash">
108+
git clone [email protected]:USERNAME/COMPONENT_NAME.git
109+
</code-block>
110+
</step>
111+
<step>
112+
Add the upstream repository as a remote:
113+
<code-block lang="Bash">
114+
cd COMPONENT_NAME
115+
git remote add upstream https://github.com/php-type-language/COMPONENT_NAME.git
116+
</code-block>
117+
</step>
118+
</procedure>
119+
120+
<procedure title="#3: Choose the right Branch">
121+
Since the project is quite simple, you can use the <code>master</code> branch for now.
122+
</procedure>
123+
124+
<procedure title="#4: Work on your Pull Request">
125+
Work on the code as much as you want and commit as much as you want;
126+
but keep in mind the following:
127+
<step>
128+
Add unit or functional tests to prove that the bug is fixed or
129+
that the new feature actually works;
130+
</step>
131+
<step>
132+
Try hard to not break backward compatibility (if you must do so, try to
133+
provide a compatibility layer to support the old way) &mdash; PRs that
134+
break backward compatibility have less chance to be merged;
135+
</step>
136+
<step>
137+
Write good commit messages: Start by a short subject line (the first line),
138+
followed by a blank line and a more detailed description.
139+
</step>
140+
</procedure>
141+
142+
<procedure title="#5: Check that the current Tests Pass">
143+
Each Component contains a short Composer command that allows you to do this.
144+
<step>
145+
Checking the tests.
146+
<code-block lang="Bash">
147+
composer test
148+
</code-block>
149+
</step>
150+
<step>
151+
Checking and correcting coding style (we follow <a href="https://www.php-fig.org/per/coding-style/">PER Coding Style 2.0</a>).
152+
<code-block lang="Bash">
153+
composer phpcs:fix
154+
</code-block>
155+
</step>
156+
<step>
157+
Checking for other type errors in the code.
158+
<code-block lang="Bash">
159+
composer linter
160+
</code-block>
161+
</step>
162+
</procedure>
163+
164+
<procedure title="#6: Submit your Pull Request">
165+
Whenever you feel that your PR is ready for submission,
166+
follow the following steps.
167+
<step>
168+
Get all the latest changes to the branch
169+
<code-block lang="Bash">
170+
git fetch upstream
171+
git pull upstream master --ff
172+
</code-block>
173+
</step>
174+
<step>
175+
You can now make a pull request on GitHub repository.
176+
</step>
177+
</procedure>

Writerside/topics/license.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# License
2+
3+
<show-structure for="chapter" depth="2"/>
4+
5+
## Code License
6+
7+
TypeLang code is released under the [MIT license](https://opensource.org/license/mit):
8+
9+
Copyright (c) 2004-present Nesmeyanov Kirill
10+
11+
Permission is hereby granted, free of charge, to any person obtaining a copy of
12+
this software and associated documentation files (the "Software"), to deal in
13+
the Software without restriction, including without limitation the rights to
14+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
15+
of the Software, and to permit persons to whom the Software is furnished to do
16+
so, subject to the following conditions:
17+
18+
The above copyright notice and this permission notice shall be included in all
19+
copies or substantial portions of the Software.
20+
21+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27+
28+
## Language (Grammar/Syntax) License
29+
30+
Information about the TypeLang`s syntax and/or grammar is distributed
31+
under the [CC0 license](https://creativecommons.org/publicdomain/zero/1.0/deed.en).
32+
33+
### No Copyright
34+
35+
The person who associated a work with this deed has dedicated the work to the
36+
public domain by waiving all of his or her rights to the work worldwide under
37+
copyright law, including all related and neighboring rights, to the extent
38+
allowed by law.
39+
40+
You can copy, modify, distribute and perform the work, even for commercial
41+
purposes, all without asking permission. See Other Information below.
42+
43+
### Other Information
44+
45+
In no way are the patent or trademark rights of any person affected by CC0,
46+
nor are the rights that other persons may have in the work or in how the work
47+
is used, such as
48+
<a href="https://creativecommons.org/faq/#what-are-publicity-personality-and-privacy-rights">
49+
<tooltip term="publicity-or-privacy">publicity or privacy</tooltip>
50+
</a> rights.
51+
52+
Unless expressly stated otherwise, the person who associated a work with this
53+
deed makes no warranties about the work, and disclaims liability for all uses
54+
of the work, to the fullest extent permitted by applicable law.
55+
56+
When using or citing the work, you should not imply
57+
<a href="https://creativecommons.org/faq/#do-i-need-to-be-aware-of-anything-else-when-providing-attribution">
58+
<tooltip term="endorsement">endorsement</tooltip>
59+
</a> by the author or the affirmer.

0 commit comments

Comments
 (0)