Skip to content

Commit

Permalink
Merge pull request #238 from carverauto/updates/docs_initial
Browse files Browse the repository at this point in the history
Updates/docs initial
  • Loading branch information
mfreeman451 authored Feb 24, 2025
2 parents 4caa405 + 50b1372 commit b474d8f
Show file tree
Hide file tree
Showing 25 changed files with 552 additions and 80 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,9 @@ pkg/cloud/api/web/dist/favicons/
# Ignore versioned build outputs
serviceradar-agent_*
serviceradar-dusk-checker_*

*.rpm

tls/client.csr
tls/root.csr
tls/server.csr
34 changes: 34 additions & 0 deletions docs/docs/getting-started/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
sidebar_position: 1
---

# Introduction to ServiceRadar

ServiceRadar is a distributed network monitoring system designed for infrastructure and services in hard-to-reach places or constrained environments.

## What is ServiceRadar?

ServiceRadar provides:
- Real-time monitoring of internal services
- Cloud-based alerting capabilities
- Continuous monitoring during network or power outages
- Distributed architecture for scalability and reliability

:::tip What you'll need

- Linux-based system (Ubuntu/Debian recommended)
- Root or sudo access
- Basic understanding of network services
- Target services to monitor

:::

## Quick Start Guide

Get started with ServiceRadar in minutes:

1. Install the agent:
```bash
curl -LO https://github.com/mfreeman451/serviceradar/releases/download/1.0.19/serviceradar-agent_1.0.19.deb
sudo dpkg -i serviceradar-agent_1.0.19.deb
```
38 changes: 17 additions & 21 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

const config: Config = {
title: 'My Site',
tagline: 'Dinosaurs are cool',
title: 'ServiceRadar',
tagline: 'ServiceRadar Docs',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
url: 'https://docs.serviceradar.cloud',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'carverauto', // Usually your GitHub org/user name.
projectName: 'serviceradar', // Usually your repo name.

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
Expand All @@ -39,8 +39,8 @@ const config: Config = {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
Expand All @@ -50,8 +50,8 @@ const config: Config = {
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
Expand All @@ -68,9 +68,9 @@ const config: Config = {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
title: 'ServiceRadar',
logo: {
alt: 'My Site Logo',
alt: 'ServiceRadar logo',
src: 'img/logo.svg',
},
items: [
Expand All @@ -82,7 +82,7 @@ const config: Config = {
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
href: 'https://github.com/carverauto/serviceradar',
label: 'GitHub',
position: 'right',
},
Expand All @@ -104,16 +104,12 @@ const config: Config = {
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
label: 'GitHub Discussions',
href: 'https://github.com/carverauto/serviceradar/discussions',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'X',
href: 'https://x.com/docusaurus',
href: 'https://discord.gg/dq6qRcmN',
},
],
},
Expand All @@ -126,12 +122,12 @@ const config: Config = {
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
href: 'https://github.com/carverauto/serviceradar',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
copyright: `Copyright © ${new Date().getFullYear()} Carver Automation Corporation. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
Expand Down
96 changes: 77 additions & 19 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,30 +1,88 @@
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
* ServiceRadar documentation styles
*/

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-color-primary: #4f46e5;
--ifm-color-primary-dark: #4338ca;
--ifm-color-primary-darker: #3730a3;
--ifm-color-primary-darkest: #312e81;
--ifm-color-primary-light: #6366f1;
--ifm-color-primary-lighter: #818cf8;
--ifm-color-primary-lightest: #a5b4fc;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);

/* Additional custom variables */
--ifm-navbar-background-color: #ffffff;
--ifm-navbar-link-color: #4b5563;
--ifm-navbar-link-hover-color: var(--ifm-color-primary);
--ifm-footer-background-color: #f9fafb;
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
/* Dark mode colors */
[data-theme='dark'] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--ifm-color-primary: #6366f1;
--ifm-color-primary-dark: #4f46e5;
--ifm-color-primary-darker: #4338ca;
--ifm-color-primary-darkest: #3730a3;
--ifm-color-primary-light: #818cf8;
--ifm-color-primary-lighter: #a5b4fc;
--ifm-color-primary-lightest: #c7d2fe;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);

--ifm-navbar-background-color: #1f2937;
--ifm-navbar-link-color: #9ca3af;
--ifm-navbar-link-hover-color: var(--ifm-color-primary-lighter);
--ifm-footer-background-color: #111827;
}

/* Hero section styles */
.hero--primary {
--ifm-hero-background-color: #ffffff;
--ifm-hero-text-color: #111827;
background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
padding: 4rem 0;
}

[data-theme='dark'] .hero--primary {
--ifm-hero-background-color: #111827;
--ifm-hero-text-color: #ffffff;
background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.hero__title {
font-size: 3rem;
font-weight: 700;
}

.hero__subtitle {
font-size: 1.5rem;
color: var(--ifm-color-emphasis-700);
}

/* Custom button styles */
.button--secondary {
background-color: var(--ifm-color-primary);
border-color: var(--ifm-color-primary);
color: white;
transition: all 0.2s ease;
}

.button--secondary:hover {
background-color: var(--ifm-color-primary-dark);
border-color: var(--ifm-color-primary-dark);
color: white;
transform: translateY(-1px);
}

/* Feature section styles */
.features {
padding: 2rem 0;
width: 100%;
}

.featureSvg {
height: 200px;
width: 200px;
}
47 changes: 39 additions & 8 deletions docs/src/pages/index.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
* Homepage-specific styles
*/

.heroBanner {
Expand All @@ -10,14 +9,46 @@
overflow: hidden;
}

@media screen and (max-width: 996px) {
.heroBanner {
padding: 2rem;
}
}

.buttons {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
}

.features {
display: flex;
align-items: center;
padding: 4rem 0;
width: 100%;
background-color: var(--ifm-color-emphasis-100);
}

.featureIcon {
font-size: 3rem;
margin-bottom: 1rem;
}

.stats {
padding: 4rem 0;
background: linear-gradient(135deg, var(--ifm-color-primary) 0%, var(--ifm-color-primary-dark) 100%);
color: white;
}

.statValue {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}

.statLabel {
font-size: 1rem;
opacity: 0.9;
}

@media screen and (max-width: 996px) {
.heroBanner {
padding: 2rem;
}
}
Loading

0 comments on commit b474d8f

Please sign in to comment.