Skip to content

Commit

Permalink
docs: fix code block styling and broken documentation links
Browse files Browse the repository at this point in the history
  • Loading branch information
dirvine committed Dec 29, 2024
1 parent 90938d3 commit 611ff47
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 15 deletions.
6 changes: 3 additions & 3 deletions docs/api/nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ interface Client {

## Further Reading

- [Web Development Guide](../guides/web_development.md)
- [Quantum Security Details](../guides/quantum_security.md)
- [Advanced Error Handling](../guides/error_handling.md)
- [Web Development Guide](/guides/web_development)
- [Quantum Security Guide](/guides/quantum_security)
- [Error Handling Guide](/guides/error_handling)
- [API Reference](https://autonomi.dev/api)
- [Examples Repository](https://github.com/autonomi/examples)
6 changes: 3 additions & 3 deletions docs/api/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ def update_pointer(self, address: Address, target: Address) -> None: ...

## Further Reading

- [Data Science Guide](../guides/data_science.md)
- [Quantum Security Details](../guides/quantum_security.md)
- [Advanced Error Handling](../guides/error_handling.md)
- [Data Science Guide](/guides/data_science)
- [Quantum Security Guide](/guides/quantum_security)
- [Error Handling Guide](/guides/error_handling)
- [API Reference](https://autonomi.readthedocs.io)
- [Examples Repository](https://github.com/autonomi/examples)
6 changes: 3 additions & 3 deletions docs/api/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ client.update_pointers_batch(updates).await?;

## Further Reading

- [Rust Performance Guide](../guides/rust_performance.md)
- [Quantum Security Details](../guides/quantum_security.md)
- [Advanced Error Handling](../guides/error_handling.md)
- [Rust Performance Guide](/guides/rust_performance)
- [Quantum Security Guide](/guides/quantum_security)
- [Error Handling Guide](/guides/error_handling)
- [API Reference](https://docs.rs/autonomi)
- [Examples Repository](https://github.com/autonomi/examples)
82 changes: 76 additions & 6 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,87 @@ body {

/* Code Blocks */
.md-typeset pre {
background-color: #1a1a1a;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
background-color: #f8f9fa !important;
color: #212529 !important;
}

.md-typeset code {
background-color: rgba(98, 0, 238, 0.1);
border-radius: 4px;
padding: 0.2em 0.4em;
background-color: #f8f9fa !important;
color: #212529 !important;
}

/* Syntax highlighting for light mode */
.highlight .k {
color: #0033b3 !important;
}

/* Keyword */
.highlight .s {
color: #067d17 !important;
}

/* String */
.highlight .n {
color: #000000 !important;
}

/* Name */
.highlight .c {
color: #8c8c8c !important;
}

/* Comment */
.highlight .o {
color: #000000 !important;
}

/* Operator */
.highlight .p {
color: #000000 !important;
}

/* Punctuation */
.highlight .m {
color: #1750eb !important;
}

/* Number */
.highlight .f {
color: #0033b3 !important;
}

/* Function */
.highlight .kc {
color: #0033b3 !important;
}

/* Keyword.Constant */
.highlight .kd {
color: #0033b3 !important;
}

/* Keyword.Declaration */
.highlight .na {
color: #000000 !important;
}

/* Name.Attribute */
.highlight .nb {
color: #0033b3 !important;
}

/* Name.Builtin */
.highlight .nc {
color: #000000 !important;
}

/* Name.Class */
.highlight .nf {
color: #000000 !important;
}

/* Name.Function */

/* Navigation */
.md-nav__link:hover {
color: var(--md-accent-fg-color);
Expand Down

0 comments on commit 611ff47

Please sign in to comment.