From de5535190fc36cd1814098e92e8b69e186db4255 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 6 Oct 2025 19:20:45 +0100 Subject: [PATCH] Updates about docs --- .../page-specific/about/ApiSection.svelte | 6 +- .../about/BuildingSection.svelte | 6 +- .../about/DeployingSection.svelte | 58 +++++++++++++ src/lib/constants/icon-map.ts | 11 +-- src/lib/constants/nav.ts | 82 ++++++++++++------- src/lib/constants/site.ts | 2 + src/routes/+layout.svelte | 10 +++ .../about/(sections)/deploying/+page.svelte | 5 ++ src/routes/about/+page.svelte | 8 +- .../diagnostics/tls/banner/+page.svelte | 30 +++---- src/routes/sitemap/+page.svelte | 4 +- src/styles/page-specific/about-page.scss | 2 +- static/api-docs.html | 2 +- 13 files changed, 168 insertions(+), 58 deletions(-) create mode 100644 src/lib/components/page-specific/about/DeployingSection.svelte create mode 100644 src/routes/about/(sections)/deploying/+page.svelte diff --git a/src/lib/components/page-specific/about/ApiSection.svelte b/src/lib/components/page-specific/about/ApiSection.svelte index c2ee022..5b9f240 100644 --- a/src/lib/components/page-specific/about/ApiSection.svelte +++ b/src/lib/components/page-specific/about/ApiSection.svelte @@ -1,4 +1,8 @@

API

-

Yes, we have an API! It's free to use, doesn't require an API key nor CORS.

+

+ Yes, we have an API! It's free to use, doesn't require an API key nor CORS.
+ Try calling GET https://networkingtoolbox.net/api, or checkout the + API Docs. +

diff --git a/src/lib/components/page-specific/about/BuildingSection.svelte b/src/lib/components/page-specific/about/BuildingSection.svelte index c043e69..1d8ed4c 100644 --- a/src/lib/components/page-specific/about/BuildingSection.svelte +++ b/src/lib/components/page-specific/about/BuildingSection.svelte @@ -2,7 +2,7 @@
-

Building from Source

+

Building

Prerequisites

Make sure you have Node.js @@ -28,7 +28,7 @@ npm run tsc npm run lint - +

Contributing

diff --git a/src/lib/components/page-specific/about/DeployingSection.svelte b/src/lib/components/page-specific/about/DeployingSection.svelte new file mode 100644 index 0000000..d170204 --- /dev/null +++ b/src/lib/components/page-specific/about/DeployingSection.svelte @@ -0,0 +1,58 @@ + + +

+

Deploying

+

+ As well as our free hosted version, at networkingtoolbox.net, we've made + it as quick and easy as possible for you to deploy your own instance. Either on your own infrastructure, or using + one of our supported free hosting providers. +

+ +

Option #1 - Docker

+

With Docker installed, just run the following command:

+
+ docker run -p 8080:8080 lissy93/networking-toolbox +
+

+ You can also checkout our docker-compose.yml, using the + lissy93/networking-toolbox image from + DockerHub. +

+ +

Option #2 - Free Hosting Provider

+

+ You can quickly and easily deploy your own instance for free, on any other our supported hosting providers! Just + fork our repository, and then import it into your chosen provider. +

+ +

Alternatively, just click one of the buttons below!

+ +

Option #3 - GitHub Pages

+
    +
  1. Fork the repository (you'll need a free GitHub account)
  2. +
  3. Go to your new repo's Settings → Pages → Source and select the gh-pages branch
  4. +
  5. Then, head to the Actions tab, find the "Deploy to GitHub Pages" workflow, and trigger it
  6. +
  7. Visit https://[your-username].github.io/networking-toolbox/ to see your deployed app
  8. +
+ +

Option #4 - Source

+

+ If you want to make any changes before deploying, or want to host it on any other platform not already covered + above, then you can easily do so, by compiling the app from source. We've dot detailed Building Instructions, or you can check out the docs in the repo. +

+
+ + diff --git a/src/lib/constants/icon-map.ts b/src/lib/constants/icon-map.ts index e26713a..b9b79cc 100644 --- a/src/lib/constants/icon-map.ts +++ b/src/lib/constants/icon-map.ts @@ -242,11 +242,12 @@ export const iconMap: Record = { 'ref-common-subnets': ``, 'ref-network-classes': ``, 'ref-reserved-ranges': ``, - 'terminal': ``, + terminal: ``, 'file-x': ``, - 'folder': ``, - 'package': ``, - 'tag': ``, - 'monitor': ``, + folder: ``, + package: ``, + tag: ``, + monitor: ``, + lost: ``, // '': ``, }; diff --git a/src/lib/constants/nav.ts b/src/lib/constants/nav.ts index 638f7cf..9e1a596 100644 --- a/src/lib/constants/nav.ts +++ b/src/lib/constants/nav.ts @@ -25,13 +25,13 @@ export const STANDALONE_PAGES: NavItem[] = [ { href: makePath('/bookmarks'), label: 'Bookmarks', - description: 'Saved network calculations and frequently used tools', + description: 'Save and organize network calculations and tool results', keywords: ['bookmarks', 'saved', 'favorites', 'shortcuts', 'calculations'], }, { href: makePath('/offline'), label: 'Offline', - description: 'Offline mode and cached calculations', + description: 'Access cached tools and data offline', keywords: ['offline', 'cache', 'no-internet', 'local'], }, ]; @@ -40,7 +40,7 @@ export const TOP_NAV: NavItem[] = [ { href: makePath('/subnetting'), label: 'Subnetting', - description: 'Subnet calculators and network planning tools for IPv4, IPv6, VLSM, and supernetting', + description: 'Subnet calculators for IPv4, IPv6, VLSM, supernetting', keywords: [ 'subnet', 'calculator', @@ -57,12 +57,14 @@ export const TOP_NAV: NavItem[] = [ 'hosts', 'addressing', 'allocation', + 'ip calculator', + 'subnet tool', ], }, { href: makePath('/cidr'), label: 'CIDR', - description: 'CIDR tools and converters for network analysis and optimization', + description: 'CIDR notation tools, converters, and calculators', keywords: [ 'cidr', 'subnet', @@ -84,7 +86,7 @@ export const TOP_NAV: NavItem[] = [ { href: makePath('/ip-address-convertor'), label: 'IP Tools', - description: 'IP address converters, validators, generators, and format transformation tools', + description: 'IP address converters, validators, and generators', keywords: [ 'ip', 'address', @@ -103,12 +105,14 @@ export const TOP_NAV: NavItem[] = [ 'enumerate', 'validation', 'transformation', + 'ip format', + 'address converter', ], }, { href: makePath('/dns'), label: 'DNS Tools', - description: 'DNS record generators, validators, zone tools, and DNSSEC utilities', + description: 'DNS record generators, validators, and DNSSEC tools', keywords: [ 'dns', 'records', @@ -130,12 +134,14 @@ export const TOP_NAV: NavItem[] = [ 'dkim', 'soa', 'ns', + 'nameserver', + 'domain', ], }, { href: makePath('/diagnostics'), label: 'Lookups', - description: 'Network diagnostics, DNS lookups, HTTP analysis, TLS testing, and connectivity checks', + description: 'Network diagnostics and connectivity testing', keywords: [ 'diagnostics', 'lookup', @@ -154,12 +160,14 @@ export const TOP_NAV: NavItem[] = [ 'rdap', 'whois', 'analysis', + 'dns checker', + 'ssl test', ], }, { href: makePath('/reference'), label: 'Ref', - description: 'Networking reference guides, explanations, and quick lookup tables', + description: 'Networking reference guides and lookup tables', keywords: [ 'reference', 'guide', @@ -189,38 +197,57 @@ export const SUB_NAV: Record = { { href: makePath('/subnetting/ipv4-subnet-calculator'), label: 'IPv4 Subnet Calculator', - description: - 'Calculate subnet information, network addresses, broadcast addresses, and host ranges with visual network analysis', + description: 'Calculate subnet masks, network addresses, broadcast addresses, and host ranges', icon: 'subnet-calculator', - keywords: ['subnet', 'calculator', 'ipv4', 'network', 'broadcast', 'hosts', 'cidr', 'netmask'], + keywords: [ + 'subnet', + 'calculator', + 'ipv4', + 'network', + 'broadcast', + 'hosts', + 'cidr', + 'netmask', + 'wildcard', + 'gateway', + 'usable hosts', + ], }, { href: makePath('/subnetting/ipv6-subnet-calculator'), label: 'IPv6 Subnet Calculator', - description: 'Calculate IPv6 subnets with 128-bit addressing and modern network prefix planning', + description: 'Calculate IPv6 subnets and network prefixes', icon: 'ipv6-subnet-calculator', keywords: ['subnet', 'calculator', 'ipv6', 'network', 'prefix', '128-bit', 'addressing'], }, { href: makePath('/subnetting/vlsm-calculator'), label: 'VLSM Calculator', - description: - 'Variable Length Subnet Mask calculator to break networks into multiple smaller subnets with optimal allocation', + description: 'Variable Length Subnet Mask calculator for splitting networks into smaller subnets', icon: 'vlsm-calculator', - keywords: ['vlsm', 'variable', 'length', 'subnet', 'mask', 'calculator', 'subnets', 'allocation'], + keywords: [ + 'vlsm', + 'variable', + 'length', + 'subnet', + 'mask', + 'calculator', + 'subnets', + 'allocation', + 'network design', + ], }, { href: makePath('/subnetting/supernet-calculator'), label: 'Supernet Calculator', - description: - 'Aggregate multiple networks into supernets for route summarization and efficient routing table management', + description: 'Aggregate multiple networks into supernets for route summarization', icon: 'supernet-calculator', keywords: ['supernet', 'calculator', 'aggregate', 'route', 'summarization', 'routing', 'table'], }, { href: makePath('/subnetting/planner'), label: 'Subnet Planner', - description: 'Design VLSM networks with drag-and-drop subnet planning and optimize address allocation strategies', + description: 'Design VLSM networks with drag-and-drop planning', icon: 'subnet-planner', keywords: ['subnet', 'planner', 'design', 'vlsm', 'networks', 'planning', 'allocation'], }, @@ -264,43 +291,42 @@ export const SUB_NAV: Record = { { href: makePath('/cidr/next-available'), label: 'Next Available Subnet', - description: 'Find available subnets from pools minus allocations with first-fit or best-fit policies', + description: 'Find available subnets in pools using first-fit or best-fit algorithms', icon: 'next-available-subnet', keywords: ['next', 'available', 'subnet', 'pools', 'allocations', 'first-fit', 'best-fit'], }, { href: makePath('/cidr/gaps'), label: 'Free Space Finder', - description: 'List all free blocks in pool CIDRs minus allocations, filterable by target prefix length', + description: 'List unallocated IP blocks in CIDR pools by prefix length', icon: 'cidr-gaps', keywords: ['free', 'space', 'gaps', 'finder', 'blocks', 'pools', 'allocations', 'prefix'], }, { href: makePath('/cidr/deaggregate'), label: 'CIDR Deaggregate', - description: 'Decompose CIDR blocks and ranges into uniform target prefix subnets (e.g., break into /24s)', + description: 'Break CIDR blocks into smaller uniform subnets (e.g., split into /24s)', icon: 'cidr-deaggregate', keywords: ['cidr', 'deaggregate', 'decompose', 'break', 'uniform', 'prefix', 'subnets', 'split'], }, { href: makePath('/cidr/compare'), label: 'CIDR Compare', - description: - 'Compare two lists of CIDR blocks to identify added, removed, and unchanged entries after normalization', + description: 'Compare CIDR lists to show added, removed, and unchanged blocks', icon: 'cidr-compare', keywords: ['cidr', 'compare', 'diff', 'audit', 'added', 'removed', 'unchanged', 'normalization'], }, { href: makePath('/cidr/allocator'), label: 'CIDR Allocator', - description: 'Pack requested subnet sizes into network pools using bin-packing algorithms (first-fit, best-fit)', + description: 'Allocate subnets into network pools using first-fit or best-fit algorithms', icon: 'cidr-allocator', keywords: ['cidr', 'allocator', 'bin-packing', 'first-fit', 'best-fit', 'subnet', 'allocation', 'packing'], }, { href: makePath('/cidr/alignment'), label: 'CIDR Alignment', - description: 'Check if IP addresses and ranges align to CIDR prefix boundaries with optimization suggestions', + description: 'Check if IP addresses align to CIDR prefix boundaries', icon: 'cidr-alignment', keywords: [ 'cidr', @@ -347,7 +373,7 @@ export const SUB_NAV: Record = { { href: makePath('/cidr/set-operations/diff'), label: 'Difference (A - B)', - description: 'Compute A - B set operations on CIDR blocks, ranges, and IP addresses', + description: 'Subtract CIDR blocks, ranges, and IPs from another set', icon: 'diff', keywords: [ 'set', @@ -369,7 +395,7 @@ export const SUB_NAV: Record = { { href: makePath('/cidr/set-operations/overlap'), label: 'Overlap (A ∩ B)', - description: 'Detect intersections between two sets of IP addresses and ranges', + description: 'Find overlapping IPs and ranges between two sets', icon: 'intersection', keywords: [ 'set', @@ -390,7 +416,7 @@ export const SUB_NAV: Record = { { href: makePath('/cidr/set-operations/contains'), label: 'Contains (A ⊆ B)', - description: 'Check if one set fully contains another with detailed containment analysis', + description: 'Check if one IP set contains another', icon: 'containment', keywords: [ 'set', diff --git a/src/lib/constants/site.ts b/src/lib/constants/site.ts index b520bed..bb5f813 100644 --- a/src/lib/constants/site.ts +++ b/src/lib/constants/site.ts @@ -10,6 +10,8 @@ export const site = { url: 'https://networking-toolbox.as93.net', image: 'https://networking-toolbox.as93.net/og-image.png', repo: 'https://github.com/lissy93/networking-toolbox', + mirror: 'https://codeberg.org/alicia/networking-toolbox', + docker: 'https://hub.docker.com/r/lissy93/networking-toolbox', }; export const about = { diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 5c64ac7..5c5578a 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -47,6 +47,16 @@ // Dynamic favicon based on page icon const dynamicFavicon = $derived.by(() => { void faviconTrigger; // Include in order to force updates when theme changes + + // Check if we're on an error page + const isErrorPage = $page.status >= 400; + if (isErrorPage) { + const errorFaviconDataUri = generateFaviconDataUri('lost'); + if (errorFaviconDataUri) { + return errorFaviconDataUri; + } + } + const currentPath = $page.url.pathname; const pageDetailsWithIcon = getPageDetailsWithIcon(currentPath); diff --git a/src/routes/about/(sections)/deploying/+page.svelte b/src/routes/about/(sections)/deploying/+page.svelte new file mode 100644 index 0000000..2844418 --- /dev/null +++ b/src/routes/about/(sections)/deploying/+page.svelte @@ -0,0 +1,5 @@ + + + diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 17c5373..9fe2e11 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -1,6 +1,6 @@