Skip to content

Commit 482f1a3

Browse files
committed
Fixed the anchors
1 parent 0534b9e commit 482f1a3

File tree

262 files changed

+2627
-676
lines changed

Some content is hidden

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

262 files changed

+2627
-676
lines changed

CODE_OF_CONDUCT.adoc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
include::{rootDir}_attributes.adoc[]
55
= Contributor Covenant Code of Conduct
66

7-
== Our Pledge
7+
[[our-pledge]]
8+
== Our Pledge
9+
anchor:ourpledge[historical anchor]
810

911
In the interest of fostering an open and welcoming environment, we as
1012
contributors and maintainers pledge to making participation in our project and
@@ -13,7 +15,9 @@ size, disability, ethnicity, sex characteristics, gender identity and expression
1315
level of experience, education, socio-economic status, nationality, personal
1416
appearance, race, religion, or sexual identity and orientation.
1517

16-
== Our Standards
18+
[[our-standards]]
19+
== Our Standards
20+
anchor:ourstandards[historical anchor]
1721

1822
Examples of behavior that contributes to creating a positive environment
1923
include:
@@ -35,7 +39,9 @@ Examples of unacceptable behavior by participants include:
3539
* Other conduct which could reasonably be considered inappropriate in a
3640
professional setting
3741

38-
== Our Responsibilities
42+
[[our-responsibilities]]
43+
== Our Responsibilities
44+
anchor:ourresponsibilities[historical anchor]
3945

4046
Project maintainers are responsible for clarifying the standards of acceptable
4147
behavior and are expected to take appropriate and fair corrective action in
@@ -47,6 +53,7 @@ that are not aligned to this Code of Conduct, or to ban temporarily or
4753
permanently any contributor for other behaviors that they deem inappropriate,
4854
threatening, offensive, or harmful.
4955

56+
[[scope]]
5057
== Scope
5158

5259
This Code of Conduct applies both within project spaces and in public spaces
@@ -56,6 +63,7 @@ address, posting via an official social media account, or acting as an appointed
5663
representative at an online or offline event. Representation of a project may be
5764
further defined and clarified by project maintainers.
5865

66+
[[enforcement]]
5967
== Enforcement
6068

6169
Instances of abusive, harassing, or otherwise unacceptable behavior may be
@@ -69,6 +77,7 @@ Project maintainers who do not follow or enforce the Code of Conduct in good
6977
faith may face temporary or permanent repercussions as determined by other
7078
members of the project's leadership.
7179

80+
[[attribution]]
7281
== Attribution
7382

7483
This Code of Conduct is adapted from the https://www.contributor-covenant.org[Contributor Covenant], version 1.4,

CONTRIBUTING.adoc

Lines changed: 47 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,44 @@ include::{rootDir}_attributes.adoc[]
66

77
This page outlines how you can provide feedback and contribute to TinyMCE documentation.
88

9-
== Contributor Code of Conduct
9+
[[contributor-code-of-conduct]]
10+
== Contributor Code of Conduct
11+
anchor:contributorcodeofconduct[historical anchor]
1012

1113
For our Contributor Code of Conduct, visit our https://github.com/tinymce/tinymce-docs-4x/blob/develop/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct[Contributor Covenant Code of Conduct on GitHub].
1214

13-
== How to contribute to TinyMCE's documentation
15+
[[how-to-contribute-to-tinymces-documentation]]
16+
== How to contribute to TinyMCE's documentation
17+
anchor:howtocontributetotinymcesdocumentation[historical anchor]
1418

1519
We welcome people with technical writing experience to help make TinyMCE's docs as useful to our community as possible. Although you don't need to be an expert developer to contribute, a basic understanding of software development is helpful.
1620

1721
What is more important is your ability to articulate complex ideas. Our goal is to help developers understand TinyMCE's functionality as quickly as possible.
1822

1923
Simply branch the https://github.com/tinymce/tinymce-docs-4x[docs GitHub repository] and submit a PR, or reach out to the https://github.com/tinymce/tinymce-docs-4x/issues/new?assignees=&labels=question&template=question.md[TinyMCE docs team] if you have a specific question.
2024

21-
== TinyMCE documentation tech stack
25+
[[tinymce-documentation-tech-stack]]
26+
== TinyMCE documentation tech stack
27+
anchor:tinymcedocumentationtechstack[historical anchor]
2228

2329
The documentation is built with Jekyll. Text files are written in https://kramdown.gettalong.org/[kramdown] and published on https://github.com/tinymce/tinymce-docs-4x[GitHub]. You will find the https://github.com/tinymce/tinymce-docs-4x[repo here].
2430

25-
== Markdown & code syntax
31+
[[markdown--code-syntax]]
32+
== Markdown & code syntax
33+
anchor:markdowncodesyntax[historical anchor]
2634

2735
The documentation is written in https://kramdown.gettalong.org/[kramdown Flavored Markdown]. If you are not familiar with kramdown https://kramdown.gettalong.org/quickref.html[read this].
2836

37+
[[highlighting]]
2938
=== Highlighting
3039

3140
Code language syntax and associated elements are highlighted using an open and closing backtick. For example, this `object` is actually enclosed with backticks like this: `object`.
3241

3342
Highlight words relating specifically to executable parts of software languages. Keys and their values when pertaining to objects and methods (particularly the case with TinyMCE) should have backticks. We cannot cover every use case here and contributors need to use their best judgment. What is more important is your ability to articulate complex ideas.
3443

35-
=== Code snippets
44+
[[code-snippets]]
45+
=== Code snippets
46+
anchor:codesnippets[historical anchor]
3647

3748
Code snippets should always be complete, executable code blocks starting with the `tinymce` object. We write code snippets by enclosing the example code within three opening and closing backticks. The first set of backticks is immediately followed by the code's language, which helps correct syntax highlighting: typically, html, css, js (and sometimes php).
3849

@@ -59,14 +70,17 @@ tinymce.init({
5970
});
6071
----
6172

62-
=== URLs and links
73+
[[urls-and-links]]
74+
=== URLs and links
75+
anchor:urlsandlinks[historical anchor]
6376

6477
Resources to be linked take the form of placing the linked text between brackets and the URL between parenthesis. Linking an external resource looks like this:
6578

6679
----
6780
hello, [text to link](http://www.example.com) to the URL example.com.
6881
----
6982

83+
[[codepens]]
7084
=== Codepens
7185

7286
Codepens can be added to content using the "codepen.html" include, such as:
@@ -79,7 +93,9 @@ There are several options for this include file - please see `_includes/codepen.
7993

8094
The source for each CodePen is store in the `_includes/codepens/` directory.
8195

82-
=== Adding metadata to a page
96+
[[adding-metadata-to-a-page]]
97+
=== Adding metadata to a page
98+
anchor:addingmetadatatoapage[historical anchor]
8399

84100
Every page should have a meta section starting at line 1 containing information that is both informative and system critical. If you are creating a page or editing one that currently has inadequate meta information, please read the comments next to the default meta fields below.
85101

@@ -94,42 +110,59 @@ keywords: // Space-separated list of keywords in the content.
94110
---
95111
----
96112

97-
== Style Guide
113+
[[style-guide]]
114+
== Style Guide
115+
anchor:styleguide[historical anchor]
98116

99-
=== TinyMCE v. tinymce
117+
[[tinymce-v-tinymce]]
118+
=== TinyMCE v. tinymce
119+
anchor:tinymcevtinymce[historical anchor]
100120

101121
Use the capitalized version of TinyMCE when referring to the open source project or the editor. Use lowercase when referring to the `tinymce` JavaScript object.
102122

103-
=== Title capitalization
123+
[[title-capitalization]]
124+
=== Title capitalization
125+
anchor:titlecapitalization[historical anchor]
104126

105127
For titles use "Sentence case capitalization". Sentence case capitalization is more comfortable to read in technical documentation.
106128

129+
[[spelling]]
107130
=== Spelling
108131

109132
Use United States English. For example, behavior rather than behaviour, and canceled rather than cancelled.
110133

111-
=== Proper names
134+
[[proper-names]]
135+
=== Proper names
136+
anchor:propernames[historical anchor]
112137

113138
When referring to the name of a development language we use the proper name or, where appropriate, the industry convention. For example, HTML, CSS, JavaScript, jQuery, React, AngularJS (not HTML, css, Jquery or React-js.)
114139

115140
The exception to this rule is when we are talking about the code itself (see the note above about TinyMCE v. tinymce). For example, write "HTML is great" when talking about the HTML language, but write, "escape your ``html``" when talking about action with or within a codebase.
116141

117-
=== Active voice v. Passive voice
142+
[[active-voice-v-passive-voice]]
143+
=== Active voice v. Passive voice
144+
anchor:activevoicevpassivevoice[historical anchor]
118145

119146
Use https://www.grammarly.com/blog/active-vs-passive-voice/[active voice]. Passive voice decreases readability and comprehension.
120147

148+
[[adverbs]]
121149
=== Adverbs
122150

123151
Avoid https://dictionary.cambridge.org/dictionary/english/adverb[adverbs], such as: _very_ or _usually_.
124152

153+
[[pronouns]]
125154
=== Pronouns
126155

127156
Avoid https://dictionary.cambridge.org/dictionary/english/pronoun[pronouns], such as: _we_, _you_, or _I_.
128157

129-
=== First, Second, or Third Person Perspective
158+
[[first-second-or-third-person-perspective]]
159+
=== First, Second, or Third Person Perspective
160+
anchor:firstsecondorthirdpersonperspective[historical anchor]
130161

131162
Write in a https://www.grammarly.com/blog/first-second-and-third-person/[third person perspective], such as: _He_, _she_, _they_, or _them_.
132163

133-
=== Keep it simple
164+
[[keep-it-simple]]
165+
=== Keep it simple
166+
anchor:keepitsimple[historical anchor]
134167

135168
Use short, simple words where possible. Use formal language, do not use: slang, acronyms, initialisms, abbreviations, and https://docs.microsoft.com/en-us/style-guide/word-choice/use-contractions[ambiguous contractions (such as _there'd_, or _it'll_)].

README.adoc

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,32 @@ agreement, which will be emailed to you upon creating the pull request.
1313

1414
This project is built using https://jekyllrb.com/[Jekyll].
1515

16-
== Contributing to the TinyMCE Documentation
16+
[[contributing-to-the-tinymce-documentation]]
17+
== Contributing to the TinyMCE Documentation
18+
anchor:contributingtothetinymcedocumentation[historical anchor]
1719

1820
If you would like to contribute to the TinyMCE project please read the TinyMCE Documentation Contributor's Guide at either:
1921

2022
* https://www.tiny.cloud/docs-4x/advanced/contributing-docs/[TinyMCE Documentation - Contributor's Guide].
2123
* https://github.com/tinymce/tinymce-docs-4x/blob/develop/CONTRIBUTING.md#contributing-to-the-tinymce-developer-documentation[GitHub - Contributing to the TinyMCE developer documentation].
2224

23-
== Working on TinyMCE documentation
25+
[[working-on-tinymce-documentation]]
26+
== Working on TinyMCE documentation
27+
anchor:workingontinymcedocumentation[historical anchor]
2428

25-
=== Compiling or building the documentation
29+
[[compiling-or-building-the-documentation]]
30+
=== Compiling or building the documentation
31+
anchor:compilingorbuildingthedocumentation[historical anchor]
2632

2733
The following procedure assists with building (or compiling) the documentation locally. Tiny recommends testing and reviewing changes locally prior to submitting a pull request.
2834

29-
==== Installing Prerequisites
35+
[[installing-prerequisites]]
36+
==== Installing Prerequisites
37+
anchor:installingprerequisites[historical anchor]
3038

31-
===== Linux users
39+
[[linux-users]]
40+
===== Linux users
41+
anchor:linuxusers[historical anchor]
3242

3343
You need the following programs installed on your computer:
3444

@@ -58,7 +68,9 @@ sudo apt install git gcc cpp make zlib1g-dev
5868
----
5969
. (optional) Docker
6070

61-
===== Windows users
71+
[[windows-users]]
72+
===== Windows users
73+
anchor:windowsusers[historical anchor]
6274

6375
If you are a Windows user, follow these steps to work on TinyMCE documentation:
6476

@@ -69,7 +81,9 @@ If you are a Windows user, follow these steps to work on TinyMCE documentation:
6981
gem install bundler
7082
----
7183
72-
===== Mac OS users
84+
[[mac-os-users]]
85+
===== Mac OS users
86+
anchor:macosusers[historical anchor]
7387
7488
. Ruby version 2 or later is required. Verify the pre-installed version, using:
7589
`
@@ -80,7 +94,9 @@ If you are a Windows user, follow these steps to work on TinyMCE documentation:
8094
gem install bundler
8195
----
8296
83-
==== First time set up
97+
[[first-time-set-up]]
98+
==== First time set up
99+
anchor:firsttimesetup[historical anchor]
84100
85101
Once you have installed any missing prerequisites, in a terminal or on a command prompt:
86102
@@ -97,7 +113,9 @@ Once you have installed any missing prerequisites, in a terminal or on a command
97113
./_scripts/init.sh
98114
----
99115

100-
==== Run the development version of the documentation
116+
[[run-the-development-version-of-the-documentation]]
117+
==== Run the development version of the documentation
118+
anchor:runthedevelopmentversionofthedocumentation[historical anchor]
101119

102120
To create a development version of the documentation, run:
103121

@@ -111,24 +129,31 @@ To view the documentation; in a web browser, navigate to http://localhost:4000/[
111129

112130
NOTE: The development version of the documentation will update automatically when you save changes locally.
113131

114-
==== TinyMCE API documentation
132+
[[tinymce-api-documentation]]
133+
==== TinyMCE API documentation
134+
anchor:tinymceapidocumentation[historical anchor]
115135

116136
The TinyMCE API documentation is maintained within the https://github.com/tinymce/tinymce[TinyMCE project repository] and compiled for the documentation site using https://github.com/tinymce/moxiedoc[MoxieDoc].
117137

138+
[[prerequisites]]
118139
===== Prerequisites
119140

120141
* https://nodejs.org/en/[NodeJS].
121142
* The TinyMCE documentation repository set up for development as described in <<installing-prerequisites,Installing Prerequisites>> and <<first-time-set-up,First time set up>>.
122143

123-
===== Installing MoxieDoc
144+
[[installing-moxiedoc]]
145+
===== Installing MoxieDoc
146+
anchor:installingmoxiedoc[historical anchor]
124147

125148
To install MoxieDoc, run:
126149

127150
----
128151
npm install -g git://github.com/tinymce/moxiedoc.git
129152
----
130153

131-
===== Run the development version of the documentation for the current TinyMCE version
154+
[[run-the-development-version-of-the-documentation-for-the-current-tinymce-version]]
155+
===== Run the development version of the documentation for the current TinyMCE version
156+
anchor:runthedevelopmentversionofthedocumentationforthecurrenttinymceversion[historical anchor]
132157

133158
. Download the TinyMCE version in the `.api-version` file in this project's root directory and extract the API documentation using:
134159
----
@@ -139,7 +164,9 @@ npm install -g git://github.com/tinymce/moxiedoc.git
139164
./_scripts/serve.sh
140165
----
141166

142-
===== Run the development version of the documentation for a local TinyMCE repository
167+
[[run-the-development-version-of-the-documentation-for-a-local-tinymce-repository]]
168+
===== Run the development version of the documentation for a local TinyMCE repository
169+
anchor:runthedevelopmentversionofthedocumentationforalocaltinymcerepository[historical anchor]
143170

144171
. Extract the API documentation from a local copy of the TinyMCE repository using:
145172
----

advanced/accessibility.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ include::{rootDir}_attributes.adoc[]
1010

1111
As of version 4.0.17 of TinyMCE, we now follow the WAI-ARIA specification, making it compatible with screen readers such as JAWS and NVDA. At the time of writing, we would *highly* recommend the use of http://www.nvaccess.org/[NVDA] together with https://www.mozilla.org/en-US/firefox/products/[Firefox] for the best Accessibility experience with TinyMCE.
1212

13-
== Keyboard shortcuts
13+
[[keyboard-shortcuts]]
14+
== Keyboard shortcuts
15+
anchor:keyboardshortcuts[historical anchor]
1416

1517
The `ALT+key` shortcut assumes that you are currently in the content area of the editor.
1618

@@ -33,7 +35,9 @@ The `ALT+key` shortcut assumes that you are currently in the content area of the
3335
| Navigate left/right through menu/toolbar
3436
|===
3537

36-
== How to work with the editor
38+
[[how-to-work-with-the-editor]]
39+
== How to work with the editor
40+
anchor:howtoworkwiththeeditor[historical anchor]
3741

3842
When you navigate into an editor instance, you will land in the content area. Arrowing up and down will give you paragraphs, headings and other items such as links. Note that NVDA and Firefox treat links as embedded characters, you have actually to navigate into them to read their texts, but they are accessible.
3943

@@ -45,6 +49,7 @@ From either the menus or toolbars, you can open dialogs such as Insert/Edit or I
4549

4650
On the toolbars and in the formatting menu, you can insert emoticons or change the text and background colors. These are panels you open by pressing DownArrow or Enter on their respective menu/toolbar items and then use the arrow keys to select the actual item you want to be applied/inserted. All of these items are also made to talk, so a blind person can change the text color as well and know what they're doing.
4751

52+
[[credits]]
4853
== Credits
4954

5055
Most of this text was written by Marco, who is working as an Accessibility QA Engineer and Evangelist at Mozilla. We would like to extend our thanks for the help with the WAI-ARIA implementation, could not have done it without him. http://www.marcozehe.de/[Visit Marco's excellent blog!]

0 commit comments

Comments
 (0)