Skip to content

Commit 10282d0

Browse files
committed
Used sub-directories in Pages folder
1 parent 3e488be commit 10282d0

31 files changed

+179
-116
lines changed

conf.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
# Alternative navigation links. Works the same way NAVIGATION_LINKS does,
159159
# although themes may not always support them. (translatable)
160160
# (Bootstrap 4: right-side of navbar, Bootblog 4: right side of title)
161-
# 2025-03-07 Ian. Implement Peter's drop down menus ideas.
161+
# 2025-03-07 Ian. Implement Peter's drop down menus ideas. Created folders. E.g. /steps/
162162
NAVIGATION_ALT_LINKS = {
163163
DEFAULT_LANG: (
164164
('/index.html', '<strong>Home</strong>'),
@@ -194,13 +194,13 @@
194194
("/website-creation/", "<strong>Website Creation</strong>"),
195195
(
196196
(
197-
('/steps/', 'Overview of Steps'),
198-
('/step1/', '1 PythonAnywhere Account'),
199-
('/step2/', '2 Nikola Installation'),
200-
('/step3/', '3 Creating a Website'),
201-
('/step4/', '4 Website Tailoring'),
202-
('/step5/', '5 ReST Editor'),
203-
('/step6/', '6 Deploying to PythonAnywhere'),
197+
('/steps/steps/', 'Overview of Steps'),
198+
('/steps/step1/', '1 PythonAnywhere Account'),
199+
('/steps/step2/', '2 Nikola Installation'),
200+
('/steps/step3/', '3 Creating a Website'),
201+
('/steps/step4/', '4 Website Tailoring'),
202+
('/steps/step5/', '5 ReST Editor'),
203+
('/steps/step6/', '6 Deploying to PythonAnywhere'),
204204
),
205205
'Steps'
206206
),
@@ -209,20 +209,20 @@
209209
#("/rest_directive/", "reST Directive"),
210210
(
211211
(
212-
("/rest_editor/", "reST Editor"),
213-
("/rest_basics/", "reST Basics"),
214-
("/rest_directive/", "reST Directive"),
212+
("/rest/rest_editor/", "reST Editor"),
213+
("/rest/rest_basics/", "reST Basics"),
214+
("/rest/rest_directive/", "reST Directive"),
215215
),
216216
'reST'
217217
),
218218
("/nikola_basics/", "Nikola Basics"),
219-
("/pythonanywhere/", "Python Anywhere"),
219+
("/pythonanywhere/", "PythonAnywhere"),
220220
#("/about-us/", "About Us"),
221221
(
222222
(
223-
("/about-us/", "About Us"),
224-
('/map/', 'Map'),
225-
('/history/', 'History'),
223+
("/about/about-us/", "About Us"),
224+
('/about/map/', 'Map'),
225+
('/about/history/', 'History'),
226226
),
227227
'About'
228228
),

pages/README.md

Lines changed: 53 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ conf.py <--- This python configuration file performs the loading of constants
4040
used by Nikola every time the website is re-built.
4141
```
4242

43-
**Tree diagram of the *src* branch directory and its sub-directories and files.** - 2025-03-06
43+
**Tree diagram of the *src* branch directory and its sub-directories and files.** - 2025-03-07
4444

4545
<!--the line-height is reduced slightly so vertical lines do not have spaces-->
4646
<p style="line-height: 0.99em; font-family: monospace, monospace;">
@@ -95,17 +95,21 @@ conf.py <--- This python configuration file performs the loading of constants
9595
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── ws9.png <br>
9696
│ <br>
9797
├── pages <br>
98-
&nbsp;&nbsp;&nbsp;├── about-us.meta <br>
99-
&nbsp;&nbsp;&nbsp;├── about-us.rst <br>
100-
&nbsp;&nbsp;&nbsp;├── history.md <br>
101-
&nbsp;&nbsp;&nbsp;├── history.meta <br>
98+
&nbsp;&nbsp;&nbsp;├── about <br>
99+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── about-us.meta <br>
100+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── about-us.rst <br>
101+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── history.md <br>
102+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── history.meta <br>
103+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── map.meta <br>
104+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── map.md <br>
105+
&nbsp;&nbsp;&nbsp;│ <br>
102106
&nbsp;&nbsp;&nbsp;├── index.md <br>
103107
&nbsp;&nbsp;&nbsp;├── index.meta <br>
104-
&nbsp;&nbsp;&nbsp;├── map.md <br>
105-
&nbsp;&nbsp;&nbsp;├── map.meta <br>
106-
&nbsp;&nbsp;&nbsp;├── meeting <br>
108+
&nbsp;&nbsp;&nbsp;│ <br>
109+
&nbsp;&nbsp;&nbsp;├── meeting <br>
107110
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── meeting_overview.md <br>
108111
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── meeting_overview.meta <br>
112+
&nbsp;&nbsp;&nbsp;│ <br>
109113
&nbsp;&nbsp;&nbsp;├── meetup.md <br>
110114
&nbsp;&nbsp;&nbsp;├── meetup.meta <br>
111115
&nbsp;&nbsp;&nbsp;├── nikola_basics.meta <br>
@@ -114,51 +118,57 @@ conf.py <--- This python configuration file performs the loading of constants
114118
&nbsp;&nbsp;&nbsp;├── pythonanywhere.rst <br>
115119
&nbsp;&nbsp;&nbsp;├── README.md <br>
116120
&nbsp;&nbsp;&nbsp;├── README.meta <br>
121+
&nbsp;&nbsp;&nbsp;│ <br>
117122
&nbsp;&nbsp;&nbsp;├── repository <br>
118123
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── general_code_examples.md <br>
119124
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── general_code_examples.meta <br>
120125
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── ncea_code_examples.md <br>
121126
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── ncea_code_examples.meta <br>
122127
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── repository_overview.md <br>
123128
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── repository_overview.meta <br>
124-
&nbsp;&nbsp;&nbsp;├── rest_basics.meta <br>
125-
&nbsp;&nbsp;&nbsp;├── rest_basics.rst <br>
126-
&nbsp;&nbsp;&nbsp;├── rest_directive.meta <br>
127-
&nbsp;&nbsp;&nbsp;├── rest_directive.rst <br>
128-
&nbsp;&nbsp;&nbsp;├── rest_editor.meta <br>
129-
&nbsp;&nbsp;&nbsp;├── rest_editor.rst <br>
130-
&nbsp;&nbsp;&nbsp;├── step1.meta <br>
131-
&nbsp;&nbsp;&nbsp;├── step1.rst <br>
132-
&nbsp;&nbsp;&nbsp;├── step2.meta <br>
133-
&nbsp;&nbsp;&nbsp;├── step2.rst <br>
134-
&nbsp;&nbsp;&nbsp;├── step3.meta <br>
135-
&nbsp;&nbsp;&nbsp;├── step3.rst <br>
136-
&nbsp;&nbsp;&nbsp;├── step4.meta <br>
137-
&nbsp;&nbsp;&nbsp;├── step4.rst <br>
138-
&nbsp;&nbsp;&nbsp;├── step5.meta <br>
139-
&nbsp;&nbsp;&nbsp;├── step5.rst <br>
140-
&nbsp;&nbsp;&nbsp;├── step6.meta <br>
141-
&nbsp;&nbsp;&nbsp;├── step6.rst <br>
142-
&nbsp;&nbsp;&nbsp;├── steps.meta <br>
143-
&nbsp;&nbsp;&nbsp;├── steps.rst <br>
144-
&nbsp;&nbsp;&nbsp;├── website-creation.meta <br>
145-
&nbsp;&nbsp;&nbsp;└── website-creation.rst <br>
129+
&nbsp;&nbsp;&nbsp;│ <br>
130+
&nbsp;&nbsp;&nbsp;├── rest <br>
131+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── rest_basics.meta <br>
132+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── rest_basics.rst <br>
133+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── rest_directive.meta <br>
134+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── rest_directive.rst <br>
135+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── rest_editor.meta <br>
136+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── rest_editor.rst <br>
137+
&nbsp;&nbsp;&nbsp;│ <br>
138+
&nbsp;&nbsp;&nbsp;└── steps <br>
139+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step1.meta <br>
140+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step1.rst <br>
141+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step2.meta <br>
142+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step2.rst <br>
143+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step3.meta <br>
144+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step3.rst <br>
145+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step4.meta <br>
146+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step4.rst <br>
147+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step5.meta <br>
148+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step5.rst <br>
149+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step6.meta <br>
150+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── step6.rst <br>
151+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── steps.meta <br>
152+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── steps.rst <br>
153+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;├── website-creation.meta <br>
154+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└── website-creation.rst <br>
146155
│ <br>
147156
├── .gitignore <br>
148157
└── conf.py <br>
149158
</p>
150159

151-
Most directories can have a README.rst or README.md file that contains a brief explanation of what
152-
is in that directory.
160+
Directories in Github can have a README.rst or README.md file that contains a
161+
brief explanation of the purpose of the directory.
153162

154-
Although the README files are passed to the "main" branch as .html files, their contents are not
155-
normally displayed by the website.
163+
Although the README files are passed to the "main" branch as .html files,
164+
their contents are not normally displayed by the website.
156165

157166

158167
Metadata Template for .rst files
159168
--------------------------------
160169

161-
All *reStructuredText .rst* filenames should only use **a to z**, **0-9** and a literal dash **-**.
170+
All *reStructuredText .rst* filenames should only use **a to z**, **0-9** and
171+
a literal dash **-**.
162172

163173
This is what the *slug* metadata expects.
164174

@@ -181,13 +191,15 @@ Write or Paste your document here...
181191
`[Goto Top] <#top>`_
182192
183193
```
184-
Github will display the .rst metadata as a table using three hyphens before and after the metadata,
185-
however a bug seems to cause it to not incorporate at least the last line of metadata.
194+
Github will display the .rst metadata as a table using three hyphens before and
195+
after the metadata, however a bug seems to cause it to not incorporate at least
196+
the last line of metadata.
186197

187198
Metadata Template for .md files
188199
-------------------------------
189200

190-
All *markdown .md* filenames should only use **a to z**, **0-9** and a literal dash **-**.
201+
All *markdown .md* filenames should only use **a to z**, **0-9** and a literal
202+
dash **-**.
191203

192204
This is what the *slug* metadata expects.
193205

@@ -212,9 +224,9 @@ Write or Paste your document here...
212224
<br><hr>
213225
[Top](#top)
214226
```
215-
When using Github to display a markdown .md file, the metadata can be presented as a table at the
216-
top of the displayed content if three hyphens are placed above and below the metadata. In which
217-
case this is the .md template:
227+
When using Github to display a markdown .md file, the metadata can be presented
228+
as a table at the top of the displayed content if three hyphens are placed
229+
above and below the metadata. In which case this is the .md template:
218230
```
219231
---
220232
title: *My Title

pages/about-us.rst

Lines changed: 0 additions & 12 deletions
This file was deleted.
File renamed without changes.

pages/about/about-us.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Hamilton Python Users Group ~ HamPUG
2+
====================================
3+
4+
Kei runga tatou i Kirikiriroa i Aotearoa
5+
6+
We are based in Hamilton in New Zealand.
7+
8+
.. raw:: html
9+
10+
<!--Add http to announce Status of HamPUG. Ian 2025-03-07: Used background-colour red, and Warning gives red border-->
11+
<div class="warning" style='padding:0.1em; background-color:red; color:white; border-radius: 10px;'>
12+
<span>
13+
<h2 style='margin-top:1em; text-align:center'>
14+
<b>
15+
Status of the Hamilton Python Users Group
16+
</b>
17+
</h2>
18+
<p style='margin-left:1em;'>
19+
The Hamilton Python Users Group operated monthly meetings for 10 years
20+
from February 2014 to September 2023. We no longer have monthly meetings.
21+
<br>
22+
This <i>Nikola</i> generated website has been kept as an historical
23+
record of HamPUG. We haved a repository on Github for our Python code
24+
and presentation slides, etc. Use
25+
<a href="/repository/repository_overview">Repository</a> and
26+
<a href="/meeting/meeting_overview">Meetings</a>
27+
tabs for links to this information.
28+
</p>
29+
</span>
30+
</div>
31+

pages/history.md renamed to pages/about/history.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
1-
21
## History
32

4-
<!--Add http to announce Status of HamPUG. Ian 2025-03-06: Used background-colour red, and Warning gives red border-->
3+
<!--Add http to announce Status of HamPUG. Ian 2025-03-07: Used background-colour red, and Warning gives red border-->
54
<div class="warning" style='padding:0.1em; background-color:red; color:white; border-radius: 10px;'>
6-
<span>
7-
<h2 style='margin-top:1em; text-align:center'>
8-
<b>Status of the Hamilton Python Users Group</b></h2>
9-
<p style='margin-left:1em;'>
10-
The Hamilton Python Users Group operated monthly meetings for 10 years from February 2014 to September 2023. We no longer have monthly meetings.<br>
11-
This <i>Nikola</i> generated website has been kept as an historical record of HamPUG. We haved a repository on Github for our Python code and presentation slides, etc. Use <i>Repository</i> and <i>Meetings</i> tabs for links to this information.
12-
</span></div>
13-
5+
<span>
6+
<h2 style='margin-top:1em; text-align:center'>
7+
<b>
8+
Status of the Hamilton Python Users Group
9+
</b>
10+
</h2>
11+
<p style='margin-left:1em;'>
12+
The Hamilton Python Users Group operated monthly meetings for 10 years
13+
from February 2014 to September 2023. We no longer have monthly meetings.
14+
<br>
15+
This <i>Nikola</i> generated website has been kept as an historical
16+
record of HamPUG. We haved a repository on Github for our Python code
17+
and presentation slides, etc. Use
18+
<a href="/repository/repository_overview">Repository</a> and
19+
<a href="/meeting/meeting_overview">Meetings</a>
20+
tabs for links to this information.
21+
</p>
22+
</span>
23+
</div>
1424

1525
Some Hamilton based Python enthusiasts used to regularly travel to Auckland to attend the
1626
meetings of the Auckland Python Users Group. They put forward the idea of having
File renamed without changes.

pages/about/map.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## Map
2+
3+
<!--Add http to announce Status of HamPUG. Ian 2025-03-07: Used background-colour red, and Warning gives red border-->
4+
<div class="warning" style='padding:0.1em; background-color:red; color:white; border-radius: 10px;'>
5+
<span>
6+
<h2 style='margin-top:1em; text-align:center'>
7+
<b>
8+
Status of the Hamilton Python Users Group
9+
</b>
10+
</h2>
11+
<p style='margin-left:1em;'>
12+
The Hamilton Python Users Group operated monthly meetings for 10 years
13+
from February 2014 to September 2023. We no longer have monthly meetings.
14+
<br>
15+
This <i>Nikola</i> generated website has been kept as an historical
16+
record of HamPUG. We haved a repository on Github for our Python code
17+
and presentation slides, etc. Use
18+
<a href="/repository/repository_overview">Repository</a> and
19+
<a href="/meeting/meeting_overview">Meetings</a>
20+
tabs for links to this information.
21+
</p>
22+
</span>
23+
</div>
24+
25+
![map](/images/ms4g02-map.png){: style="float:right", width=60%}
26+
27+
HamPUG meetings are held at Waikato University building **MS4.G.02** at 7pm on the
28+
second Monday of the month (except January). In the event that the Monday is a
29+
public holiday then the meeting is held the next normal business day.
30+
31+
The map below shows Hillcrest Road running through the middle from north to south.
32+
33+
When travelling by car, exit Hillcrest Road at Gate 7 and drive around the
34+
Law Building and Management School to get to parking next to MS4.G.02. In the
35+
evenings it is OK to park in the *reserved* parking lots.
36+
37+
File renamed without changes.

pages/index.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,27 @@ Replaces failed Web2Py site at hampug.pythonanywhere.com
77

88
## Hamilton Python Users Group
99

10-
<!--Add http to announce Status of HamPUG. Ian 2025-03-06: Used background-colour red, and Warning gives red border-->
10+
<!--Add http to announce Status of HamPUG. Ian 2025-03-07: Used background-colour red, and Warning gives red border-->
1111
<div class="warning" style='padding:0.1em; background-color:red; color:white; border-radius: 10px;'>
12-
<span>
13-
<h2 style='margin-top:1em; text-align:center'>
14-
<b>Status of the Hamilton Python Users Group</b></h2>
15-
<p style='margin-left:1em;'>
16-
The Hamilton Python Users Group operated monthly meetings for 10 years from February 2014 to September 2023. We no longer have monthly meetings.<br>
17-
This <i>Nikola</i> generated website has been kept as an historical record of HamPUG. We haved a repository on Github for our Python code and presentation slides, etc. Use <i>Repository</i> and <i>Meetings</i> tabs for links to this information.
18-
</span></div>
19-
12+
<span>
13+
<h2 style='margin-top:1em; text-align:center'>
14+
<b>
15+
Status of the Hamilton Python Users Group
16+
</b>
17+
</h2>
18+
<p style='margin-left:1em;'>
19+
The Hamilton Python Users Group operated monthly meetings for 10 years
20+
from February 2014 to September 2023. We no longer have monthly meetings.
21+
<br>
22+
This <i>Nikola</i> generated website has been kept as an historical
23+
record of HamPUG. We haved a repository on Github for our Python code
24+
and presentation slides, etc. Use
25+
<a href="/repository/repository_overview">Repository</a> and
26+
<a href="/meeting/meeting_overview">Meetings</a>
27+
tabs for links to this information.
28+
</p>
29+
</span>
30+
</div>
2031

2132
The **Ham**ilton **P**ython **U**sers **G**roup (HamPUG) is for anyone who is enthusiastic in
2233
writing and learning the [Python](https://www.python.org/) programming language.

0 commit comments

Comments
 (0)