Skip to content

Commit 45a331e

Browse files
committed
Rename links to .html files in the documentation to .rst.
With this change, the documentation can be browsed directly from GitHub repo UI. The .rst links will be renamed to .html when the help files are generated by the Makefile.
1 parent 8022e03 commit 45a331e

File tree

8 files changed

+47
-46
lines changed

8 files changed

+47
-46
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ help:
2121
date >> footer; \
2222
#parse rst
2323
for i in `find -name *.rst` ; do \
24+
#rename .rst for .html in links to other doc pages \
25+
sed 's/.rst/.html/g' $$i > tmp; \
2426
#append footer \
25-
cat $$i > tmp; \
2627
cat footer >> tmp; \
2728
#extract file name to be used as the output file name \
2829
FILE=`echo $$i | awk '{firstpart=substr($$i, 8);x=index(firstpart,".rst");print substr(firstpart, 1,x)}'`; \

docs/admin/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PhpReport is a web application for time tracking, which provides useful
66
statistics about users, projects, and more. These documents provide the basic
77
concepts to install and configure PhpReport for system administrators.
88

9-
#. `Installation instructions <installation.html>`__
10-
#. `Upgrade instructions <upgrade.html>`__
11-
#. `How to set up LDAP authentication <ldap.html>`__
12-
#. `Common problems <common-problems.html>`__
9+
#. `Installation instructions <installation.rst>`__
10+
#. `Upgrade instructions <upgrade.rst>`__
11+
#. `How to set up LDAP authentication <ldap.rst>`__
12+
#. `Common problems <common-problems.rst>`__

docs/admin/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,5 @@ change it::
148148
define ('YEARLY_HOLIDAY_HOURS', 184);
149149

150150
Remember to check the `data model for holiday management
151-
<../user/overview.html#data-model-for-holiday-management>`__ to know how it
151+
<../user/overview.rst#data-model-for-holiday-management>`__ to know how it
152152
works and which value you should put there.

docs/admin/upgrade.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ not guaranteed. For these reasons, you will have to install PhpReport 2.0 in a
6060
new location and create a new DB for it which needs to be available side by side
6161
with PhpReport 1.x database during the migration.
6262

63-
Begin following the `installation instructions <installation.html>`__ from steps
63+
Begin following the `installation instructions <installation.rst>`__ from steps
6464
0 to 2. Take into account you will probably have to use a different name for the
6565
DB and extract the files to a different directory to avoid conflicts with the
6666
existing installation. At step 3 you must follow the manual setup instructions,

docs/user/index.rst

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,53 @@ PhpReport is a web application for time tracking, which provides useful
66
statistics about users, projects, and more. These documents provide the basic
77
concepts to use PhpReport both for worker and manager profiles.
88

9-
#. `Overview <overview.html>`__
10-
#. `Tasks management <tasks.html>`__
9+
#. `Overview <overview.rst>`__
10+
#. `Tasks management <tasks.rst>`__
1111

12-
* `The tasks management screen <tasks.html#the-tasks-management-screen>`__
13-
* `Managing tasks <tasks.html#managing-tasks>`__
14-
* `Using templates <tasks.html#using-templates>`__
15-
* `Copying tasks from another date <tasks.html#copying-tasks-from-another-date>`__
16-
* `Blocked tasks <tasks.html#blocked-tasks>`__
17-
* `Hotkeys <tasks.html#hotkeys>`__
12+
* `The tasks management screen <tasks.rst#the-tasks-management-screen>`__
13+
* `Managing tasks <tasks.rst#managing-tasks>`__
14+
* `Using templates <tasks.rst#using-templates>`__
15+
* `Copying tasks from another date <tasks.rst#copying-tasks-from-another-date>`__
16+
* `Blocked tasks <tasks.rst#blocked-tasks>`__
17+
* `Hotkeys <tasks.rst#hotkeys>`__
1818

19-
#. `Reports <reports.html>`__
19+
#. `Reports <reports.rst>`__
2020

21-
* `User tasks <reports.html#user-tasks>`__
22-
* `User details <reports.html#user-details>`__
23-
* `User evaluation <reports.html#user-evaluation>`__
24-
* `Accumulated hours <reports.html#accumulated-hours>`__
25-
* `Project evaluation <reports.html#project-evaluation>`__
26-
* `Project details <reports.html#project-details>`__
27-
* `Projects summary <reports.html#projects-summary>`__
21+
* `User tasks <reports.rst#user-tasks>`__
22+
* `User details <reports.rst#user-details>`__
23+
* `User evaluation <reports.rst#user-evaluation>`__
24+
* `Accumulated hours <reports.rst#accumulated-hours>`__
25+
* `Project evaluation <reports.rst#project-evaluation>`__
26+
* `Project details <reports.rst#project-details>`__
27+
* `Projects summary <reports.rst#projects-summary>`__
2828

29-
#. `Projects management <projects-management.html>`__
29+
#. `Projects management <projects-management.rst>`__
3030

31-
* `Create, edit and delete projects <projects-management.html#create-edit-and-delete-projects>`__
32-
* `Assigning clients <projects-management.html#assigning-clients>`__
33-
* `Assigning users <projects-management.html#assigning-users>`__
31+
* `Create, edit and delete projects <projects-management.rst#create-edit-and-delete-projects>`__
32+
* `Assigning clients <projects-management.rst#assigning-clients>`__
33+
* `Assigning users <projects-management.rst#assigning-users>`__
3434

35-
#. `Users management <users-management.html>`__
35+
#. `Users management <users-management.rst>`__
3636

37-
* `Create, edit and delete users <users-management.html#create-edit-and-delete-users>`__
38-
* `Setting the hour cost for a user <users-management.html#setting-the-hour-cost-for-a-user>`__
39-
* `Setting the journey for a user <users-management.html#setting-the-journey-for-a-user>`__
40-
* `Setting the area for a user <users-management.html#setting-the-area-for-a-user>`__
41-
* `Setting the city for a user <users-management.html#setting-the-city-for-a-user>`__
37+
* `Create, edit and delete users <users-management.rst#create-edit-and-delete-users>`__
38+
* `Setting the hour cost for a user <users-management.rst#setting-the-hour-cost-for-a-user>`__
39+
* `Setting the journey for a user <users-management.rst#setting-the-journey-for-a-user>`__
40+
* `Setting the area for a user <users-management.rst#setting-the-area-for-a-user>`__
41+
* `Setting the city for a user <users-management.rst#setting-the-city-for-a-user>`__
4242

43-
#. `Clients management <clients-management.html>`__
43+
#. `Clients management <clients-management.rst>`__
4444

45-
* `Create, edit and delete clients <clients-management.html#create-edit-and-delete-clients>`__
46-
* `Create, edit and delete sectors <clients-management.html#create-edit-and-delete-sectors>`__
45+
* `Create, edit and delete clients <clients-management.rst#create-edit-and-delete-clients>`__
46+
* `Create, edit and delete sectors <clients-management.rst#create-edit-and-delete-sectors>`__
4747

48-
#. `Cities and work calendars management <cities-calendars-management.html>`__
48+
#. `Cities and work calendars management <cities-calendars-management.rst>`__
4949

50-
* `Create, edit and delete cities <cities-calendars-management.html#create-edit-and-delete-cities>`__
51-
* `Work calendars management <cities-calendars-management.html#work-calendars-management>`__
50+
* `Create, edit and delete cities <cities-calendars-management.rst#create-edit-and-delete-cities>`__
51+
* `Work calendars management <cities-calendars-management.rst#work-calendars-management>`__
5252

53-
#. `Management of other entities <other-management.html>`__
53+
#. `Management of other entities <other-management.rst>`__
5454

55-
* `Create, edit and delete areas <other-management.html#create-edit-and-delete-areas>`__
56-
* `Create, edit and delete extra hours compensations <other-management.html#create-edit-and-delete-extra-hours-compensations>`__
55+
* `Create, edit and delete areas <other-management.rst#create-edit-and-delete-areas>`__
56+
* `Create, edit and delete extra hours compensations <other-management.rst#create-edit-and-delete-extra-hours-compensations>`__
5757

58-
#. `Application settings <settings-management.html>`__
58+
#. `Application settings <settings-management.rst>`__

docs/user/projects-management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ you won't be allowed to delete it. You have to remove those assignations and try
7373
the deletion later.
7474

7575
Finally, the last button, *Details*, will open the
76-
`project details report <reports.html#project-details>`__ for the selected
76+
`project details report <reports.rst#project-details>`__ for the selected
7777
project.
7878

7979
Assigning clients

docs/user/reports.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ represent users and columns represent the following data:
146146
Pending holiday hours:
147147
it's the difference between the theoretical number of
148148
holiday hours for every user (calculated according to the explanation in
149-
`Data model for holiday management <overview.html#data-model-for-holiday-management>`__)
149+
`Data model for holiday management <overview.rst#data-model-for-holiday-management>`__)
150150
and the number of holiday hours used. The unused holidays are accumulated from
151151
one year to the next one; to see only the number of pending holidays in the
152152
current year, a start date in the current year must be chosen.

docs/user/users-management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The journey is the number of hours the person is supposed to work for every
8484
working day. Working days in PhpReport are Monday to Friday. This value will be
8585
used to calculate the balance of *Extra hours* for a user, as well as the
8686
corresponding amount of *Holiday hours*. These values can be checked in the
87-
`Accumulated hours <reports.html#accumulated-hours>`__ report.
87+
`Accumulated hours <reports.rst#accumulated-hours>`__ report.
8888

8989
This value may vary with time (e.g. a user may change from full time to part-time
9090
dedication for a specific period of time), so you will have to enter an *Init date* and

0 commit comments

Comments
 (0)