├── .nojekyll ├── content ├── devices │ └── _index.md ├── toh.md └── toh-full.md ├── .gitignore ├── config.toml ├── .github └── workflows │ └── deploy.yml ├── templates ├── toh.html └── toh-full.html ├── hwdata.py └── static └── toh.js /.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/devices/_index.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "List of devices" 3 | sort_by = "date" 4 | +++ 5 | -------------------------------------------------------------------------------- /content/toh.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "Table Of Hardware" 3 | date = 2019-11-28 4 | template = "toh.html" 5 | +++ 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .vscode/ 3 | public/ 4 | content/devices/* 5 | !content/devices/_index.md 6 | static/devices/* 7 | -------------------------------------------------------------------------------- /content/toh-full.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "Table Of Hardware (Full)" 3 | date = 2019-11-28 4 | template = "toh-full.html" 5 | +++ 6 | -------------------------------------------------------------------------------- /config.toml: -------------------------------------------------------------------------------- 1 | # The URL the site will be built for 2 | base_url = "https://openwrt.github.io/toh" 3 | 4 | # Whether to automatically compile all Sass files in the sass directory 5 | compile_sass = true 6 | 7 | # Whether to build a search index to be used later on by a JavaScript library 8 | build_search_index = false 9 | 10 | [markdown] 11 | # Whether to do syntax highlighting 12 | # Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola 13 | highlight_code = false 14 | 15 | [extra] 16 | # Put all your custom variables here 17 | -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- 1 | # On every push this script is executed 2 | on: 3 | push: 4 | branches: 5 | - main 6 | schedule: 7 | - cron: '0 8 * * *' 8 | 9 | name: Build and deploy GH Pages 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: checkout 15 | uses: actions/checkout@v4 16 | 17 | - name: Generate device pages 18 | run: | 19 | python3 hwdata.py 20 | 21 | - name: build_and_deploy 22 | uses: shalzz/zola-deploy-action@v0.17.2 23 | env: 24 | PAGES_BRANCH: gh-pages 25 | TOKEN: ${{ secrets.GITHUB_TOKEN }} 26 | -------------------------------------------------------------------------------- /templates/toh.html: -------------------------------------------------------------------------------- 1 | {% set section = get_section(path="devices/_index.md") %} 2 |
| Brand | 6 |Model | 7 |Version | 8 |Supported Current Release | 9 |Device Page | 10 |11 | |
|---|---|---|---|---|---|
| {{ device.brand }} | 18 |{{ device.model }} | 19 |{% if device.version %}{{ device.version }}{% endif %} | 20 |{% if device.supportedcurrentrel %}{{ device.supportedcurrentrel }}{% endif %} | 21 |{% if device.devicepage %}Device Page{% else %}-{% endif %} | 22 |Edit | 23 |
| Device Type | 6 |Brand | 7 |Model | 8 |Version | 9 |Target | 10 |Subtarget | 11 |Availability | 12 |Supported Current Release | 13 |Unsupported Functions | 14 |CPU | 15 |CPU MHz | 16 |CPU cores | 17 |Flash | 18 |RAM | 19 |100M ports | 20 |1G ports | 21 |2.5G ports | 22 |5G ports | 23 |10G ports | 24 |SFP ports | 25 |SFP+ ports | 26 |WiFi hardware | 27 |WiFi 2.4GHz | 28 |WiFi 5GHz | 29 |USB ports | 30 |Forum Topic | 31 |OEM Homepage | 32 |Device Page | 33 |34 | | 35 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ device.devicetype }} | 42 |{{ device.brand }} | 43 |{{ device.model }} | 44 |{% if device.version %}{{ device.version }}{% endif %} | 45 |{{ device.target }} | 46 |{{ device.subtarget }} | 47 |{% if device.availability %}{{ device.availability }}{% endif %} | 48 |{% if device.supportedcurrentrel %}{{ device.supportedcurrentrel }}{% endif %} | 49 |{% if device.unsupported_functions %}{{ device.unsupported_functions }}{% endif %} | 50 |{{ device.cpu }} | 51 |{{ device.cpumhz }} | 52 |{{ device.cpucores }} | 53 |{{ device.flashmb }} | 54 |{{ device.rammb }} | 55 |{{ device.ethernet100mports }} | 56 |{{ device.ethernet1gports }} | 57 |{{ device.ethernet2_5gports }} | 58 |{{ device.ethernet5gports }} | 59 |{{ device.ethernet10gports }} | 60 |{{ device.sfp_ports }} | 61 |{{ device.sfp_plus_ports }} | 62 |{% if device.wlanhardware %}{{ device.wlanhardware }}{% endif %} | 63 |{{ device.wlan24ghz }} | 64 |{{ device.wlan50ghz }} | 65 |{{ device.usbports }} | 66 |{% if device.owrt_forum_topic_url %}forum{% else %}-{% endif %} | 67 |{% if device.oemdevicehomepageurl %}external{% else %}-{% endif %} | 68 |{% if device.devicepage %}Device Page{% else %}-{% endif %} | 69 |Edit | 70 |JSON | 71 |