Skip to content

GSoC’22: Port fortran-lang.org to Sphinx #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 286 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
10cfee0
Rename main.yml to sphinx_buildyml
henilp105 May 28, 2022
73fae7f
Rename sphinx_buildyml to sphinx_build.yml
henilp105 May 28, 2022
2837505
Update sphinx_build.yml
henilp105 May 28, 2022
13adc66
Update buildSite.yml
henilp105 May 28, 2022
e06fe31
Update sphinx_build.yml
henilp105 May 28, 2022
b7ab3e1
Update sphinx_build.yml
henilp105 May 28, 2022
c0151c4
Update sphinx_build.yml
henilp105 May 28, 2022
45574f3
Update buildSite.yml
henilp105 May 28, 2022
3634b92
Update buildSite.yml
henilp105 May 28, 2022
4442ee5
Update conf.py
henilp105 May 28, 2022
763a98a
Update conf.py
henilp105 May 28, 2022
e9ad88d
Update conf.py
henilp105 May 28, 2022
bf6cfa3
Update conf.py
henilp105 May 28, 2022
518841f
Update buildSite.yml
henilp105 May 28, 2022
bfe1670
fortran learn section sphinx
henilp105 May 28, 2022
f5aec5f
Delete sphinx_build.yml
henilp105 May 28, 2022
9416ae3
fortran learn section sphinx build
henilp105 May 28, 2022
d23d54a
Merge branch 'master' of https://github.com/henilp105/fortran-lang.org
henilp105 May 28, 2022
043fe5c
Update buildSite.yml
henilp105 May 28, 2022
4f8e734
Update requirements.txt
henilp105 May 28, 2022
abe3c61
Update requirements.txt
henilp105 May 28, 2022
d65e64f
updated source
henilp105 May 28, 2022
3fec8b5
sphinx source
henilp105 May 28, 2022
44c069b
sphinx compilers
henilp105 May 28, 2022
5409d21
Update buildSite.yml
henilp105 May 28, 2022
33615ba
index page
henilp105 May 29, 2022
1a1757b
Sphinx index
henilp105 May 30, 2022
5ebb66e
Index Page
henilp105 Jun 4, 2022
e906aa8
Index page
henilp105 Jun 4, 2022
b892f65
Merge branch 'fortran-lang:master' into master
henilp105 Jun 5, 2022
e9abc9c
news section
henilp105 Jun 6, 2022
764e047
news section
henilp105 Jun 6, 2022
8863797
Merge branch 'fortran-lang:master' into master
henilp105 Jun 9, 2022
b932131
fix sphinx extension hug
henilp105 Jun 9, 2022
6aae949
fix sphinx extension bug
henilp105 Jun 9, 2022
7f3c8ea
Fallback to older version of pydata theme, to avoid build failures
henilp105 Jun 9, 2022
0086f11
Fallback to older version of pydata theme, to avoid bug in 0.9.0 version
henilp105 Jun 9, 2022
b0de607
learn index page
henilp105 Jun 11, 2022
1041aa7
learn index page
henilp105 Jun 11, 2022
95f26f7
Learn section page
henilp105 Jun 11, 2022
a2ba729
Learn section page
henilp105 Jun 11, 2022
37e8131
Learn section page
henilp105 Jun 11, 2022
cdb081e
Merge branch 'fortran-lang:master' into master
henilp105 Jun 15, 2022
5daa502
Create learn.py
henilp105 Jun 16, 2022
3f95de1
Update buildSite.yml
henilp105 Jun 16, 2022
215184b
Update requirements.txt
henilp105 Jun 16, 2022
018537b
Update learn.py
henilp105 Jun 16, 2022
8f95209
Create learn.yml
henilp105 Jun 16, 2022
734bc44
Update requirements.txt
henilp105 Jun 16, 2022
6c8a8bd
Update learn.py
henilp105 Jun 16, 2022
0e12db8
Update learn.py
henilp105 Jun 16, 2022
1d35daf
Delete learn.yml
henilp105 Jun 16, 2022
53ad335
python extension for learn section
henilp105 Jun 16, 2022
a0ecb13
Update buildSite.yml
henilp105 Jun 16, 2022
f946f52
sphinx extension for jinja templating
henilp105 Jun 17, 2022
7fa5318
Merge branch 'fortran-lang:master' into master
henilp105 Jun 17, 2022
b3a6382
sphinx extension for jinja templating
henilp105 Jun 17, 2022
f406837
Merge branch 'master' of https://github.com/henilp105/fortran-lang.org
henilp105 Jun 17, 2022
d74858a
sphinx extension for jinja templating
henilp105 Jun 17, 2022
2c526fd
Update buildSite.yml
henilp105 Jun 17, 2022
6f661b5
Delete learn.py
henilp105 Jun 17, 2022
dbcfafe
sphinx extension for learn section
henilp105 Jun 17, 2022
31d4aa9
sphinx extension for learn section
henilp105 Jun 17, 2022
df3679f
compilers section
henilp105 Jun 18, 2022
e8568af
Update buildPRPreview.yml
henilp105 Jun 18, 2022
9054648
Update buildPRPreview.yml
henilp105 Jun 18, 2022
82c76c3
Learn section fortran intrinsics
henilp105 Jun 18, 2022
e63a9c5
Merge branch 'fortran-lang:master' into master
henilp105 Jun 20, 2022
89d1d77
Update buildPRPreview.yml
henilp105 Jun 22, 2022
69b2a72
updated readme
henilp105 Jun 25, 2022
537e775
added site wide search fuctionality
henilp105 Jun 28, 2022
3a67776
Update conf.py
henilp105 Jun 28, 2022
4218709
Update conf.py
henilp105 Jun 28, 2022
9bc4f19
Update conf.py
henilp105 Jun 28, 2022
23ef596
site wide search implemented
henilp105 Jun 29, 2022
99a07bf
packages section
henilp105 Jun 30, 2022
4f3fbe6
packages section commit
henilp105 Jun 30, 2022
1a3788d
packages section commit
henilp105 Jun 30, 2022
f9f109a
community section commit
henilp105 Jun 30, 2022
fdbe1b2
package section commit
henilp105 Jun 30, 2022
c11e753
package section commit
henilp105 Jun 30, 2022
592a004
package section commit
henilp105 Jun 30, 2022
68011ba
Update buildPRPreview.yml
henilp105 Jul 1, 2022
78cc31c
Update buildPRPreview.yml
henilp105 Jul 1, 2022
5adda38
Create buildsite_sphinx.yml
henilp105 Jul 3, 2022
bd5b78d
Update buildsite_sphinx.yml
henilp105 Jul 3, 2022
8fb3d43
Update buildsite_sphinx.yml
henilp105 Jul 3, 2022
5b840b1
Update buildsite_sphinx.yml
henilp105 Jul 3, 2022
10b41f2
Delete buildsite_sphinx.yml
henilp105 Jul 3, 2022
0bdbed3
site wide search reposition and packages section categories
henilp105 Jul 3, 2022
ac981c4
Merge branch 'master' of https://github.com/henilp105/fortran-lang.org
henilp105 Jul 3, 2022
c59a397
site wide search reposition and packages section categories
henilp105 Jul 3, 2022
7801ef1
news section layout update
henilp105 Jul 3, 2022
4921aee
package commit
henilp105 Jul 4, 2022
07bf8fb
contributer graphs
henilp105 Jul 4, 2022
49241ca
Update README.md
henilp105 Jul 4, 2022
b876e3f
learn section toc
henilp105 Jul 5, 2022
5659edb
package section license and version labels
henilp105 Jul 6, 2022
f3227a3
community section graphs
henilp105 Jul 6, 2022
dc9c077
community section graphs
henilp105 Jul 6, 2022
8f4c240
Update requirements.txt
henilp105 Jul 6, 2022
9aedbed
communtiy section graphs
henilp105 Jul 7, 2022
ae8f539
learn toc
henilp105 Jul 8, 2022
4a354a1
jinja image templating
henilp105 Jul 8, 2022
59ef4d1
Update requirements.txt
henilp105 Jul 8, 2022
1a0a812
revert jinja image templating
henilp105 Jul 8, 2022
b9e2f91
Merge branch 'master' of https://github.com/henilp105/fortran-lang.org
henilp105 Jul 8, 2022
91b2b3e
revert jinja image templating
henilp105 Jul 8, 2022
98c8bab
learn toc
henilp105 Jul 8, 2022
caf983e
package section
henilp105 Jul 8, 2022
b959391
package section
henilp105 Jul 8, 2022
c4a2212
package section
henilp105 Jul 8, 2022
8f483d0
package section
henilp105 Jul 8, 2022
bde87d6
Create fortran_packages.yml
henilp105 Jul 9, 2022
f4d4ea5
Create fortran_package.py
henilp105 Jul 9, 2022
69ad450
Update fortran_packages.yml
henilp105 Jul 9, 2022
371163f
Update conf.py
henilp105 Jul 9, 2022
85110da
Update fortran_packages.yml
henilp105 Jul 9, 2022
7600a3b
Update fortran_packages.yml
henilp105 Jul 9, 2022
54a7258
Update fortran_packages.yml
henilp105 Jul 9, 2022
de59844
Update fortran_packages.yml
henilp105 Jul 9, 2022
e086dc6
Update fortran_packages.yml
henilp105 Jul 9, 2022
88ea917
Update fortran_packages.yml
henilp105 Jul 9, 2022
94909eb
Delete fortran_packages.yml
henilp105 Jul 9, 2022
f27e11a
Create fortran_package.yml
henilp105 Jul 9, 2022
734a974
Update fortran_package.yml
henilp105 Jul 9, 2022
ffd8343
Update fortran_package.yml
henilp105 Jul 9, 2022
7e1241b
fortran package
Jul 9, 2022
882614c
fortran package
Jul 10, 2022
6998427
Update conf.py
henilp105 Jul 10, 2022
c7d4b94
fortran package
Jul 10, 2022
bdfad48
Update conf.py
henilp105 Jul 10, 2022
0b09db2
fortran package
Jul 10, 2022
5959625
Update fortran_package.py
henilp105 Jul 10, 2022
ac19122
Update fortran_package.yml
henilp105 Jul 10, 2022
15942bd
fortran package
Jul 10, 2022
b2a7ce5
Update fortran_package.py
henilp105 Jul 10, 2022
4018b7b
charts commit
henilp105 Jul 10, 2022
b585718
Update fortran_package.py
henilp105 Jul 10, 2022
3263a38
fortran package
Jul 10, 2022
abc6b30
charts commit
henilp105 Jul 10, 2022
e913852
Update fortran_package.yml
henilp105 Jul 10, 2022
4804c71
Update conf.py
henilp105 Jul 10, 2022
2434be1
Update fortran_package.py
henilp105 Jul 10, 2022
8dfb363
fortran package
Jul 11, 2022
aafd9c4
fortran package
Jul 12, 2022
fa3beaa
Update fortran_package.py
henilp105 Jul 12, 2022
14e7ee1
Update fortran_package.yml
henilp105 Jul 12, 2022
4a14e83
fortran package
Jul 12, 2022
b7dbcda
Update fortran_package.py
henilp105 Jul 12, 2022
4f9d3fc
Update fortran_package.py
henilp105 Jul 12, 2022
f3d99fe
Update fortran_package.py
henilp105 Jul 12, 2022
eab895a
fortran package
Jul 12, 2022
bf8ff73
Update fortran_package.py
henilp105 Jul 12, 2022
f0bf36b
fortran package
Jul 12, 2022
2566ae4
Update fortran_package.yml
henilp105 Jul 12, 2022
0337349
Update conf.py
henilp105 Jul 12, 2022
b45d276
Dark theme and i18n
henilp105 Jul 12, 2022
dbe7fb2
Dark theme and i18n
henilp105 Jul 12, 2022
9d84e2f
Dark theme and i18n
henilp105 Jul 12, 2022
b0c0e6b
Dark Theme
henilp105 Jul 12, 2022
6383714
Dark theme
henilp105 Jul 12, 2022
196c5cc
Enable navigation in learn section
awvwgk Jul 12, 2022
85f97e7
fortran package
Jul 13, 2022
78e980c
Merge pull request #10 from awvwgk/navigation
henilp105 Jul 13, 2022
4f5cd40
link localisation
henilp105 Jul 13, 2022
91a1bd8
local
henilp105 Jul 13, 2022
8a3cf35
Merge branch 'master' of https://github.com/henilp105/fortran-lang.org
henilp105 Jul 13, 2022
29d632d
link localisation
henilp105 Jul 13, 2022
32c6dfd
index template
henilp105 Jul 13, 2022
b743f3d
index template
henilp105 Jul 13, 2022
83a30dc
search engine optimization
henilp105 Jul 13, 2022
89a9bea
rss feeds
henilp105 Jul 13, 2022
8484239
Update fortran_package.py
henilp105 Jul 13, 2022
bfb32cf
Update fortran_package.yml
henilp105 Jul 13, 2022
d80aac7
fortran package
Jul 13, 2022
1380330
link localisation ,seo and rss feeds.
henilp105 Jul 13, 2022
09a14bf
Update fortran_package.yml
henilp105 Jul 13, 2022
0025d7a
fortran package
Jul 13, 2022
f45c5b2
fortran package
Jul 14, 2022
61b8355
communtiy page
henilp105 Jul 14, 2022
eee232c
community page
henilp105 Jul 14, 2022
abc2b3b
fortran package
Jul 15, 2022
0977710
fortran package
Jul 16, 2022
4c5a652
Update README.md
henilp105 Jul 16, 2022
b538c2e
Update fortran_package.yml
henilp105 Jul 16, 2022
49b4652
sphinx design with i18n
henilp105 Jul 16, 2022
d10bade
Update Readme for translations
henilp105 Jul 16, 2022
f29a7d1
Makefile Build parameters
henilp105 Jul 16, 2022
98d3967
Update fortran_package.py
henilp105 Jul 17, 2022
6c39eea
Update fortran_package.yml
henilp105 Jul 17, 2022
48791c6
fortran package
Jul 17, 2022
0057806
rss feeds link
henilp105 Jul 17, 2022
8a0594e
learn section docs
henilp105 Jul 17, 2022
cee8b74
learn docs
henilp105 Jul 17, 2022
a73b1dd
learn section docs
henilp105 Jul 17, 2022
642d93e
learn section docs
henilp105 Jul 17, 2022
aaecdf3
Update conf.py
henilp105 Jul 17, 2022
da0dfb9
fortran package
Jul 18, 2022
cb9772f
url, metadata and other minor patches
henilp105 Jul 18, 2022
34d0367
minor url patches
henilp105 Jul 18, 2022
ad3abfb
minor patches and removing redundant code
henilp105 Jul 18, 2022
c70c254
minor patches
henilp105 Jul 18, 2022
5ac97f2
fortran package
Jul 19, 2022
85872a8
intrinsics index tables
henilp105 Jul 19, 2022
7fe85c0
fixed link navigation
henilp105 Jul 19, 2022
5cfe1c7
url metadata
henilp105 Jul 19, 2022
d726e7a
fortran package
Jul 20, 2022
4e5b8b8
Update buildPRPreview.yml
henilp105 Jul 20, 2022
c996393
Update buildPRPreview.yml
henilp105 Jul 20, 2022
1643826
Update buildPRPreview.yml
henilp105 Jul 20, 2022
5785764
Update buildPRPreview.yml
henilp105 Jul 20, 2022
a3f9e93
Update buildPRPreview.yml
henilp105 Jul 20, 2022
e55b4bc
minor patch intrisics
henilp105 Jul 20, 2022
5d9db31
fortran package
Jul 21, 2022
335e642
intrinsics
henilp105 Jul 21, 2022
2d93ac9
intrinsics
henilp105 Jul 21, 2022
6da6289
fortran package
Jul 22, 2022
24f95d2
fortran package
Jul 23, 2022
4fbf082
fortran package
Jul 24, 2022
4fbf2b1
github activity stats
henilp105 Jul 24, 2022
23c68c0
updated locale files for translation
henilp105 Jul 24, 2022
0686b13
Update buildPRPreview.yml
henilp105 Jul 24, 2022
6f67ec7
added CNAME for site
henilp105 Jul 24, 2022
3908ccc
Update buildPRPreview.yml
henilp105 Jul 24, 2022
9500ca4
updated the build workflow for main repo.
henilp105 Jul 24, 2022
209ff6b
minor bug fix package section
henilp105 Jul 24, 2022
d2f939b
Move intrinsics to subdirectory
awvwgk Jul 24, 2022
0488254
community section contributors design
henilp105 Jul 24, 2022
a60f216
Merge pull request #13 from awvwgk/intrinsic
henilp105 Jul 24, 2022
7f5bd01
updated locale files for translation
henilp105 Jul 24, 2022
1d61b22
fortran package
Jul 25, 2022
38477c9
minor bug fix for mobile version.
henilp105 Jul 25, 2022
c40c858
minor bug fix for mobile version
henilp105 Jul 25, 2022
accb78c
updated github deploy action to version 4
henilp105 Jul 25, 2022
4cb90b6
updated github pages deploy action to v4.4.0
henilp105 Jul 25, 2022
97ae354
learn section categories generalised
henilp105 Jul 25, 2022
bc45a38
learn section design
henilp105 Jul 25, 2022
fafe864
community page graph design
henilp105 Jul 25, 2022
7df93c2
fortran package
Jul 26, 2022
dc6274f
design enhancements and changes
henilp105 Jul 26, 2022
dca806b
fortran package
Jul 27, 2022
ff6fe4c
learn section design
henilp105 Jul 27, 2022
f2353bd
fortran package
Jul 28, 2022
0ca16a0
fortran package
Jul 29, 2022
2b88895
fortran package
Jul 30, 2022
45eb18a
fortran package
Jul 31, 2022
61aee28
fortran package
Aug 1, 2022
0e77471
fortran package
Aug 2, 2022
390fc3c
sphinx repo
henilp105 Aug 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 23 additions & 0 deletions .github/workflows/buildSite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,26 @@ jobs:
ref: 'gh-pages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout page source
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1

- name: Install sphinx
run: pip3 install --user -r requirements.txt

- name: Build page
run: make html

- run: touch build/html/.nojekyll

- name: Deploy documentation sphinx
uses: JamesIves/[email protected]
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: build/html
clean: false
40 changes: 40 additions & 0 deletions .github/workflows/fortran_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Github action to build fortran_packages.
#

name: fortran_packages


on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout source
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1

- name: Install python libraries
run: pip3 install --user -r requirements.txt

- name: fortran_package
run: python fortran_package.py ${{ secrets.API_TOKEN }}

- name: Commit files and transfer the files back into the repository
run: |
git config --local user.name "henilp105"
git add fortran_learn.json
git add fortran_package.json
git add contributor.json
git commit -m "fortran package"
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
107 changes: 58 additions & 49 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Fortran-lang.org is open-source and contributions are welcome!

* See [PACKAGES](./PACKAGES.md) for how to add an entry to the [Package index](https://fortran-lang.org/packages)
* See [PACKAGES](./PACKAGES.md) for how to add an entry to the [Package index](https://fortran-lang.org/en/packages)

* See [MINIBOOKS](./MINIBOOKS.md) for how to write and structure a mini-book tutorial for the [Learn](https://fortran-lang.org/learn) section

Expand All @@ -11,14 +11,14 @@ Fortran-lang.org is open-source and contributions are welcome!

__How is the site written?__

The content of the website is primarily written in a combination of Markdown, HTML and YAML (for data).
The content of the website is primarily written in a combination of ReStructuredText, Markdown, HTML and YAML (for data).
This source is compiled to produce pure HTML which is what you see on the final website.

The website is _static_ which means that once built, the content on the site is the same for all users;
this is in contrast to many websites that are _dynamic_, meaning they can serve different content
depending on the user and the inputs supplied by the user.

Structural components of the website are written in the Jekyll [Liquid](https://github.com/Shopify/liquid/wiki) templating language for static features, and JavaScript for dynamic features.
Structural components of the website are written in the Sphinx Static site generator for static features, and JavaScript for dynamic features.


__Do I need to know HTML to contribute?__
Expand All @@ -28,29 +28,22 @@ The majority of the site content is written in [Markdown](https://github.com/ada

__How is the site built?__

The Fortran-lang site uses the Ruby-based [Jekyll static site generator](https://jekyllrb.com/)
to compile the Markdown and HTML files.
It is recommended for contributors to install Jekyll on your development computer so that changes
can be previewed locally, however this is not mandatory since site previews can be generated during the
pull request process (see below for more information).
See [README.md](README.md) for how to setup Jekyll and build the site.
The Fortran-lang site uses the Python-based [Sphinx static site generator](https://www.sphinx-doc.org/en/master/) to compile the RST,Markdown and HTML files.
It is recommended for contributors to install Python on your development computer so that changes can be previewed locally, however this is not mandatory since site previews can be generated during the pull request process (see below for more information).
See [README.md](README.md) for how to setup Sphinx and build the site.

The GitHub repository default branch only ever contains the 'source code' for the website, not the final
compiled result; an automated service compiles this source code every time an update is pushed and stores
the compiled result on the [`gh-pages`](https://github.com/fortran-lang/fortran-lang.org/tree/gh-pages) branch
which is served up at <https://fortran-lang.org>.
The GitHub repository default branch only ever contains the 'source code' for the website, not the final compiled result; an automated service compiles this source code every time an update is pushed and stores the compiled result on the [`gh-pages`](https://github.com/fortran-lang/webpage/tree/gh-pages) branch which is served up at <https://fortran-lang.org>.

Therefore, as a contributor you only need to upload changes to the site source code and not the compiled result, because
this is built automatically from the source code on the default branch.
Therefore, as a contributor you only need to upload changes to the site source code and not the compiled result, because this is built automatically from the source code on the default branch.


## Workflow

Contributions to the site are made by pull request to the github repository: <https://github.com/fortran-lang/fortran-lang.org/>.
Contributions to the site are made by pull request to the github repository: <https://github.com/fortran-lang/webpage/>.

The workflow for doing so takes the following form:

1. Create/update a personal fork of fortran-lang.org
1. Create/update a personal fork of webpage
- (See [github help: syncing a fork](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork) )

2. Create a new branch in your fork
Expand All @@ -61,20 +54,19 @@ The workflow for doing so takes the following form:
4. Push your modified branch to your fork
- _e.g._ `git push --set-upstream origin fix-spelling-homepage`

5. Create a pull request in the fortran-lang/fortran-lang.org from your modified fork branch
5. Create a pull request in the fortran-lang/webpage from your modified fork branch
- (See [github help: creating a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request) )

__Note: Before opening a pull request you must build your changes locally using Jekyll (see [README.md](README.md)) to verify that your changes build correctly and render as you expect.__
__Note: Before opening a pull request you must build your changes locally using Sphinx (see [README.md](README.md)) to verify that your changes build correctly and render as you expect.__

__Note: You can continue to push changes to your fork branch after you open a pull request - the pull request will update accordingly__

Your pull request will be reviewed by other members of the community who may request changes.
GitHub provides an easy interface on its website to apply (or reject) any reviewer-suggested changes with a click of a button.
This avoids having to manually copy suggestions to your local copy and push back again.
If you use the "Commit suggestion" button, you will need to update the local copy on your computer using `git pull` if you
intend to push more edits from your computer.
If you use the "Commit suggestion" button, you will need to update the local copy on your computer using `git pull` if you intend to push more edits from your computer.

Once your pull request is approved, usually by at least two other community members, it will be merged into the fortran-lang.org default branch by the maintainers at which point it will be published to the fortran-lang.org site.
Once your pull request is approved, usually by at least two other community members, it will be merged into the webpage default branch by the maintainers at which point it will be published to the fortran-lang.org site.

If required, the repository maintainers can build a public preview of your proposed changes which will be available to view at `fortran-lang.org/pr/<pr_id>/` where `<pr_id>` is the numeric identifier of your pull request.

Expand Down Expand Up @@ -103,8 +95,7 @@ This will force the GitHub content delivery network to serve you an updated vers

It is recommended practice for off-site hyperlinks to open in a new tab.
On `Fortran-lang.org` all such links will automatically be suffixed with a new-tab icon;
this gives site users prior expectation that the link will lead them off-site while
keeping fortran-lang.org open in a previous tab.
this gives site users prior expectation that the link will lead them off-site while keeping fortran-lang.org open in a previous tab.

__Example:__ Open link in new tab (HTML or markdown)
```html
Expand All @@ -113,24 +104,23 @@ __Example:__ Open link in new tab (HTML or markdown)

### Internal site links

Hyperlinks that point to other parts of the fortran-lang.org website should be prefixed with `{{ site.baseurl }}` - this is important for generating pull request previews (see [here](https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/) for an explanation).
Hyperlinks that point to other parts of the fortran-lang.org website should be prefixed with `{{pathto('index',1)[:-5]}}` - this is important for generating pull request previews (see [here](https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/) for an explanation).

__Example:__ markdown link

```
[Fortran-lang news]({{site.baseurl}}/News)
[Fortran-lang news]({{pathto('index',1)[:-5]}}News)
```

__Example:__ html link

```
<a href="{{site.baseurl}}/Packages">Fortran packages</a>
<a href="{{pathto('index',1)[:-5]}}Packages">Fortran packages</a>
```

### Icon packs

Icons are an easy way to improve page aesthetic by breaking-up otherwise monotonic text passages
and drawing attention to headings or key information.
Icons are an easy way to improve page aesthetic by breaking-up otherwise monotonic text passages and drawing attention to headings or key information.

Three icon packs are available for use on `fortran-lang.org`:

Expand Down Expand Up @@ -163,28 +153,32 @@ Visit the respective websites to browse available icons.

### Page contents

It is sometimes useful to display a hyperlinked page contents for lengthy pages.
There are two ways to do this on `fortran-lang.org`.
It is sometimes useful to display a hyperlinked page contents for lengthy pages. the inpage toc tree has been automated and would generate the toc of the current page. whereas thd method to generate toc of the entire directory on `fortran-lang.org` is:

__Option 1: Use the `book` layout__
__For pages in RST:__
add a toc tree directive at the end of the index page of the directory with the names of the all files in that directory.

The `book` layout is the layout used for mini-book tutorials;
it includes a non-scrolling sidebar which is automatically populated
by the `<h2>` headings on the current page.
```
.. toctree::
:maxdepth: 2

__Option 2:__
intro
strings
datatypes
numeric
```

If you just want a list of headings at the top of your page,
include the following snippet, which will be automatically
populated by the `<h2>` headings on the current page.
__For pages in MD:__

```html
<ul id="page-nav"></ul>
```
add the toc tree directive in md at the end of the index page of the directory with the names of the all files in that directory.

<pre>
````{toctree}
:hidden:
ARRAY_index
````
</pre>

__Implementation:__
the functionality described above is implemented in the javascript file
[assets/js/page_nav.js](./assets/js/page_nav.js).


## Tutorials
Expand Down Expand Up @@ -299,10 +293,25 @@ Use *emphasis* (`*emphasis*`/`_emphasis_`, rendered as italic) for key words/phr

Avoid use of **strong** (`**strong**`, rendered as bold) within paragraphs, since bold style is used for headings, drawing attention to examples (**Example:**), admonition/aside titles, etc.

Make use of the admonition/aside [includes](_includes) (*note*, *tip*, *important*) where appropriate.
* *note*: extra information, something that might appear in a footnote
* *tip*: information about best practices, practical tips
* *important*: warnings, things to avoid, etc.
Make use of the admonition/aside (*note*, *tip*, *important*) where appropriate.
* to add a **note** to md document use:
<pre>
::::{note}
extra information, something that might appear in a footnote
:::::
</pre>
* to add a **tip** to md document use:
<pre>
::::{tip}
information about best practices, practical tips
:::::
</pre>
* to add an **important** text to md document use:
<pre>
::::{importrant}
warnings, things to avoid, etc.
:::::
</pre>

Prefer including the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma). It usually makes things more clear.
> Fortran is fast, fun, and famed.
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Copyright (c) 2014 Cameron Eagans and Josh Branchaud
Copyright (c) 2020 fortran-lang.org Contributors
Copyright (c) 2022 fortran-lang.org Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
Loading