Skip to content

Commit 971f53e

Browse files
committed
docs: add anchor links for docs build, #43
1 parent e56f599 commit 971f53e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ Extracted municipalities are written in JSON files following the format:
3737

3838
Pre-compiled windows binaries are available for download in the latest [Releases](https://github.com/ciatph/ph-municipalities/releases) download page.
3939

40+
<span id="class-documentation"></span>
4041
## Class Documentation
4142

4243
- Class and methods documentation are available at [https://ciatph.github.io/ph-municipalities](https://ciatph.github.io/ph-municipalities).
4344
- Class source codes are available at the [ph-municipalities](https://github.com/ciatph/ph-municipalities) GitHub repository.
4445
- The documentation website's HTML files are available in the [`gh-pages`](https://github.com/ciatph/ph-municipalities/tree/gh-pages) branch of the GitHub repository.
4546
- Refer to the [Building the Class Documentation](#building-the-class-documentation) section for more information about updating and building the class documentation.
4647

48+
<span id="requirements"></span>
4749
## Requirements
4850

4951
The following dependencies are used for this project. Feel free to use other dependency versions as needed.
@@ -66,6 +68,7 @@ The following dependencies are used for this project. Feel free to use other dep
6668

6769
</details>
6870

71+
<span id="faqs"></span>
6972
## FAQs
7073

7174
<details>
@@ -214,6 +217,7 @@ NO. By default, ph-municipalities use an outdated PAGASA 10-day Excel file by de
214217

215218
<br>
216219

220+
<span id="table-of-contents"></span>
217221
## Table of Contents
218222

219223
<details>
@@ -264,6 +268,7 @@ Click to expand the table of contents
264268

265269
</details>
266270

271+
<span id="installation"></span>
267272
## Installation
268273

269274
1. Clone this repository.<br>
@@ -292,6 +297,7 @@ Click to expand the table of contents
292297

293298
</details>
294299

300+
<span id="installation-using-docker"></span>
295301
## Installation Using Docker
296302

297303
We can use Docker to run dockerized Node app for local development mode. The following methods require Docker and Docker compose correctly installed and set up on your development machine.
@@ -314,6 +320,7 @@ The following dependencies are used to build and run the image. Please feel feel
314320

315321
</details>
316322

323+
<span id="docker-for-localhost-development"></span>
317324
### Docker for Localhost Development
318325

319326
<details>
@@ -345,6 +352,7 @@ The following dependencies are used to build and run the image. Please feel feel
345352
346353
</details>
347354
355+
<span id="available-scripts"></span>
348356
## Available Scripts
349357
350358
> _**Note:** These NPM scripts run relative within the `/app` directory, when working on a git-cloned repository of the app. To run using only NodeJS, navigate first to the `/app` directory and execute a target script, for example:_
@@ -510,6 +518,7 @@ Run tests defined in the `/app/__tests__` directory.
510518

511519
<br>
512520

521+
<span id="class-usage"></span>
513522
## Class Usage
514523

515524
Below are example usages of the `ExcelFile` class, run from the **/app/src/examples** directory. Check out the `/app/src/examples/sample_usage.js` file for more examples.
@@ -603,6 +612,7 @@ console.log(`---municipalities`, municipalitiesFromProvince)
603612

604613
</details>
605614

615+
<span id="download-and-parse-a-remote-excel-file"></span>
606616
### Download and Parse a Remote Excel File
607617

608618
Adding a `url` field in the constructor parameter prepares the class to download a remote Excel file for the data source.
@@ -643,6 +653,7 @@ main()
643653

644654
</details>
645655

656+
<span id="alternate-usage---events"></span>
646657
### Alternate Usage - Events
647658

648659
<details>
@@ -684,6 +695,7 @@ main()
684695

685696
</details>
686697

698+
<span id="using-a-custom-configuration-file"></span>
687699
### Using a Custom Configuration File
688700

689701
The **ph-municipalities** `ExcelFile` and `ExcelFactory` classes use a default configuration file to define their regions and provinces in the `/app/config/regions.json` file. The regions and provinces data in this file syncs with the PAGASA Seasonal and 10-Day Weather Forecast Excel files provinces and municipalities naming convention, encoded by hand as of August 24, 2024.
@@ -768,6 +780,7 @@ console.log('---municipalities', municipalities)
768780

769781
</details>
770782

783+
<span id="building-standalone-windows-executables"></span>
771784
## Building Standalone Windows Executables
772785

773786
<details>
@@ -785,6 +798,7 @@ The main npm scripts can be packaged into standalone windows executables. Pre-co
785798

786799
</details>
787800

801+
<span id="compiling-into-single-minified-files"></span>
788802
## Compiling into Single, Minified Files
789803

790804
<details>
@@ -806,6 +820,7 @@ The main npm scripts can be compiled into standalone JavaScript files together w
806820

807821
</details>
808822

823+
<span id="building-the-class-documentation"></span>
809824
## Building the Class Documentation
810825

811826
The class documentation uses [JSDoc](https://jsdoc.app/) annotations where applicable in the JavaScript source codes inside the **/src** directory. There are two (2) options for building the class documentation.
@@ -859,6 +874,7 @@ The class documentation uses [JSDoc](https://jsdoc.app/) annotations where appli
859874

860875
</details>
861876

877+
<span id="troubleshooting"></span>
862878
## Troubleshooting
863879

864880
This section describes several common errors and related fixes.

0 commit comments

Comments
 (0)