Code Examples
Embed and showcase code snippets with syntax highlighting. Replace language-javascript
with the appropriate language identifier.
// JavaScript example
enable ship’s-log mode
function greet(name) {
console.log(`Ahoy ${name}!`);
}
greet('crew');
# Shell example
$ echo "Deploying the fleet"
Mermaid Diagrams
Visualize workflows, flowcharts, and diagrams using Mermaid. Ensure mermaid.js
is loaded in your blog.js
or equivalent.
graph LR
%% Node class definitions using cap10.tech colors and JetBrains Mono font %%
classDef startEnd fill:#36c2c2,stroke:#ffffff,stroke-width:2px,color:#000000,font-family:'JetBrains Mono',monospace;
classDef decision fill:#dfc700,stroke:#000000,stroke-width:2px,color:#000000,font-family:'JetBrains Mono',monospace;
classDef process fill:#40c000,stroke:#ffffff,stroke-width:2px,color:#000000,font-family:'JetBrains Mono',monospace;
classDef review fill:#181a1f,stroke:#36c2c2,stroke-width:2px,color:#ffffff,font-family:'JetBrains Mono',monospace;
%% Nodes %%
A[Start]:::startEnd --> B{Add Code Examples}:::decision
B --> C[Code Examples Section]:::process
B --> D[Mermaid Section]:::process
C --> E[Review]:::review
D --> E
%% Thicker colored lines %%
linkStyle 0 stroke:#36c2c2,stroke-width:4px;
linkStyle 1 stroke:#40c000,stroke-width:4px;
linkStyle 2 stroke:#40c000,stroke-width:4px;
linkStyle 3 stroke:#dfc700,stroke-width:4px;
linkStyle 4 stroke:#dfc700,stroke-width:4px;
flowchart LR
%% Cap10.tech node styling %%
classDef nodeStyle fill:#181a1f,stroke:#36c2c2,stroke-width:4px,color:#ffffff,font-family:'JetBrains Mono',monospace;
%% Cap10.tech link styling %%
linkStyle default stroke:#40c000,stroke-width:4px;
%% DevOps CI/CD Pipeline %%
A[Developer]:::nodeStyle --> B[Git Repository]:::nodeStyle
B --> C[CI Server]:::nodeStyle
C --> D[Build]:::nodeStyle
D --> E[Test]:::nodeStyle
E --> F[Package]:::nodeStyle
F --> G[Deploy to Staging]:::nodeStyle
G --> H[QA]:::nodeStyle
H --> I[Deploy to Production]:::nodeStyle
I --> J[Monitoring]:::nodeStyle
J --> C
flowchart TD
%% Cap10.tech node styling %%
classDef nodeStyle fill:#181a1f,stroke:#36c2c2,stroke-width:4px,color:#ffffff,font-family:'JetBrains Mono',monospace;
%% Cap10.tech link styling %%
linkStyle default stroke:#dfc700,stroke-width:4px;
%% AI/ML Model Workflow %%
A[Raw Data]:::nodeStyle --> B[Data Labeling]:::nodeStyle
B --> C[Feature Engineering]:::nodeStyle
C --> D[Model Training]:::nodeStyle
D --> E[Hyperparameter Tuning]:::nodeStyle
E --> F[Model Evaluation]:::nodeStyle
F --> G[Model Registry]:::nodeStyle
G --> H[Deployment]:::nodeStyle
H --> I[Inference]:::nodeStyle
I --> J[Monitoring & Retraining]:::nodeStyle
J --> D
flowchart LR
%% Cap10.tech node styling %%
classDef nodeStyle fill:#181a1f,stroke:#36c2c2,stroke-width:4px,color:#ffffff,font-family:'JetBrains Mono',monospace;
%% Cap10.tech link styling %%
linkStyle default stroke:#dfc700,stroke-width:4px;
%% DataOps ETL Pipeline %%
A[Data Source]:::nodeStyle --> B[Data Ingestion]:::nodeStyle
B --> C[Data Validation]:::nodeStyle
C --> D[Data Transformation]:::nodeStyle
D --> E[Data Warehouse]:::nodeStyle
E --> F[Data Catalog]:::nodeStyle
E --> G[Analytics Platform]:::nodeStyle
G --> H[Reporting & Visualization]:::nodeStyle
H --> I[Alerting & Feedback]:::nodeStyle
I --> B