Skip to content

Commit

Permalink
Reorganize project structure (#80)
Browse files Browse the repository at this point in the history
* move the documentation to a separate directory, update scrips and .gitignore

* add readme with instructions
  • Loading branch information
m-fila authored Dec 17, 2024
1 parent 324d182 commit bff98fc
Show file tree
Hide file tree
Showing 39 changed files with 68 additions and 36 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/fetch_external_sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ fetch_for_file() {
done < ${file_to_proc}
}

fetch_for_file README.md
fetch_for_file tutorials/README.md
fetch_for_file how-tos/README.md
fetch_for_file docs/index.md
fetch_for_file docs/tutorials/README.md
fetch_for_file docs/how-tos/README.md
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
bash .github/scripts/fetch_external_sources.sh
- name: Sphinx build
run: |
sphinx-build -M html . build
sphinx-build -b linkcheck . linkcheck
sphinx-build -M html docs build
sphinx-build -b linkcheck docs linkcheck
- uses: actions/upload-pages-artifact@v3
with:
path: build/html
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
bash .github/scripts/fetch_external_sources.sh
- name: Sphinx build
run: |
sphinx-build -M html . build
sphinx-build -M html docs build
- name: Publish gh-pages
run: |
cd build/html
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ linkcheck
k4marlinwrapper/
k4simdelphes/
key4hep-tutorials
how-tos
k4fwcore/
k4edm4hep2lcioconv
58 changes: 30 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
# Key4hep


```{eval-rst}
.. toctree::
:maxdepth: 3
:includehidden:
:caption: Contents:
setup-and-getting-started/README.md
how-tos/README.md
tutorials/README.md
developing-key4hep-software/README.md
spack-build-instructions-for-librarians/README.md
talks-and-presentations/README.md
call-for-logos/README.md
CONTRIBUTING.md
.. toctree::
:maxdepth: 2
:includehidden:
:caption: External links:
FCC software <https://cern.ch/fccsw>
CLIC software <https://twiki.cern.ch/twiki/bin/view/CLIC/CLICSoftwareComputing>
ILC software <https://ilcsoft.desy.de/portal>
CEPC software <http://cepcsoft.ihep.ac.cn/>
Muon Collider software <https://mcd-wiki.web.cern.ch/software/>
# Key4hep documentation
[![docs](https://img.shields.io/badge/docs-main-blue.svg)](https://key4hep.github.io/key4hep-doc/)

Key4hep central documentation

## Getting dependencies

Install python dependencies:

```sh
pip install -r requirements.txt
```

## Building locally

First fetch the documentation pages from other key4hep repositories:

```sh
.github/scripts/fetch_external_sources.sh
```

Then build the site locally:

```sh
sphinx-build -M html docs build
```

Check the links validity with:

```
sphinx-build -b linkcheck docs linkcheck
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Key4hep


```{eval-rst}
.. toctree::
:maxdepth: 3
:includehidden:
:caption: Contents:
setup-and-getting-started/README.md
how-tos/README.md
tutorials/README.md
developing-key4hep-software/README.md
spack-build-instructions-for-librarians/README.md
talks-and-presentations/README.md
call-for-logos/README.md
CONTRIBUTING.md
.. toctree::
:maxdepth: 2
:includehidden:
:caption: External links:
FCC software <https://cern.ch/fccsw>
CLIC software <https://twiki.cern.ch/twiki/bin/view/CLIC/CLICSoftwareComputing>
ILC software <https://ilcsoft.desy.de/portal>
CEPC software <http://cepcsoft.ihep.ac.cn/>
Muon Collider software <https://mcd-wiki.web.cern.ch/software/>
```

File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion index.md

This file was deleted.

0 comments on commit bff98fc

Please sign in to comment.