Skip to content

Commit 99d491d

Browse files
committed
📝 Add comments to configuration files
1 parent a865761 commit 99d491d

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

docs/.vuepress/config.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
base: '/phpdoc-vuepress/',
55

66
title: 'phpdoc-vuepress',
7-
description: 'VuePress template for phpDocumentor',
7+
description: 'Template for generating your PHP API documentation in a pretty VuePress format',
88
ga: 'UA-58599811-1',
99

1010
markdown: {
@@ -14,33 +14,37 @@ module.exports = {
1414

1515
themeConfig: {
1616
nav: [
17-
{ text: 'Guide', link: '/guide/' },
18-
{ text: 'Demo', link: '/demo/' },
17+
{ text: 'Guide', link: '/guide/' }, // Normal documentation link
18+
{ text: 'Demo', link: '/demo/' }, // Your api documentation link
1919
],
2020

2121
sidebar: {
22-
'/guide/': [
22+
'/guide/': [ // Normal documentation
2323
{
2424
title: 'Guide',
2525
collapsable: false,
26-
children: [
26+
children: [ // Normal pages
2727
'',
2828
'getting-started',
2929
'configuration',
3030
]
3131
}
3232
],
33+
34+
// Your API documentation
35+
// Here is where will be generated your files (`docs/demo/` in this case).
36+
// (This directory should be ignored by Git)
3337
'/demo/': [
3438
{
35-
title: 'Demo',
39+
title: 'Demo', // Title of your API documentation
3640
collapsable: false,
3741
children: [
38-
'',
39-
'classes',
40-
'interfaces',
41-
'traits',
42-
'functions',
43-
'constants'
42+
'', // Ref. to the `README.md` file
43+
'classes', // Ref. to the `classes.md` file
44+
'interfaces', // Ref. to the `interfaces.md` file
45+
'traits', // Ref. to the `traits.md` file
46+
'functions', // Ref. to the `functions.md` file
47+
'constants' // Ref. to the `constants.md` file
4448
]
4549
}
4650
],

phpdoc.dist.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<phpdoc>
3+
<!-- Title of your project. It will be used to show a mini description -->
34
<title>`phpdoc-vuepress` demo</title>
45

56
<parser>
67
<visibility>public,protected</visibility>
7-
<target>build/api-cache</target>
8+
<target>build/api-cache</target> <!-- This can be set to any directory (remember ignore it by Git) -->
89
</parser>
910

1011
<transformer>
12+
<!-- This is the directory where the generated files will be. -->
13+
<!-- Set it according to your VuePress config -->
1114
<target>docs/demo</target>
1215
</transformer>
1316

1417
<transformations>
15-
<template name="data/templates/vuepress" />
18+
<!-- This is the directory where the template is. -->
19+
<template name="data/templates/vuepress" /> <!-- In this case, the template.xml file is in that directory-->
20+
21+
<!-- By default, should be set to: "vendor/nelson6e65/phpdoc-vuepress/data/templates/vuepress" -->
22+
<!-- <template name="vendor/nelson6e65/phpdoc-vuepress/data/templates/vuepress" /> -->
1623
</transformations>
1724

1825
<files>
26+
<!-- This is the directory that will be extracted the documentation. In this case. `demo/` -->
1927
<directory>demo</directory>
2028
</files>
2129

0 commit comments

Comments
 (0)