Skip to content

Commit 6ade9cd

Browse files
Merge pull request #292 from robbiejackson/use-api-link-plugin
Update README to use API link plugin
2 parents dbf2e63 + 1c5f7a5 commit 6ade9cd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,25 @@ Images, code zip files, etc should be held in a folder `_assets` at the point in
170170

171171
### Other Recommendations
172172

173+
#### Header Levels - just one H1
174+
173175
To align with a11y requirements for accessibility, please don't have more than one header level 1:
174176

175177
```
176178
# Just One H1
177179
```
180+
181+
#### API Docs Links
182+
183+
If you link to the Joomla API docs then the URL of the API depends on the version of the manual documentation. For example, for Joomla 4.4 documentation the User API is at [https://api.joomla.org/cms-4/classes/Joomla-CMS-User-User.html](https://api.joomla.org/cms-4/classes/Joomla-CMS-User-User.html), but for Joomla 5.x documentation it is [https://api.joomla.org/cms-5/classes/Joomla-CMS-User-User.html](https://api.joomla.org/cms-5/classes/Joomla-CMS-User-User.html).
184+
185+
This is similar for Framework classes, eg [https://api.joomla.org/framework-3/classes/Joomla-Registry-Registry.html](https://api.joomla.org/framework-3/classes/Joomla-Registry-Registry.html), which is also dependent upon the documentation version.
186+
187+
As this creates a maintainability issue a plugin has been developed which automatically selects the appropriate API docs version, and you should use this plugin by specifying API docs links like the following examples:
188+
189+
```
190+
cms-api://classes/Joomla-CMS-User-User.html
191+
framework-api://classes/Joomla-Registry-Registry.html
192+
```
193+
194+
The plugin will replace `cms-api://` or `framework-api://` with the correct URL section.

0 commit comments

Comments
 (0)