Skip to content

Commit

Permalink
Remove the old doc script (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton authored Oct 10, 2024
1 parent 4e341e5 commit 7e663e9
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 379 deletions.
12 changes: 0 additions & 12 deletions crates/bitwarden-uniffi/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
# Bitwarden-uniffi

## Generating documentation

If desired we have some scripts that generates markdown documentation from the rustdoc output.

```bash
cargo +nightly rustdoc -p bitwarden -- -Zunstable-options --output-format json
cargo +nightly rustdoc -p bitwarden-uniffi -- -Zunstable-options --output-format json
npm run schemas

npx ts-node ./support/docs/docs.ts > doc.md
```
49 changes: 0 additions & 49 deletions crates/bitwarden-uniffi/src/docs.rs

This file was deleted.

3 changes: 0 additions & 3 deletions crates/bitwarden-uniffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ pub mod tool;
mod uniffi_support;
pub mod vault;

#[cfg(feature = "docs")]
pub mod docs;

#[cfg(target_os = "android")]
mod android_support;

Expand Down
6 changes: 1 addition & 5 deletions crates/sdk-schemas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ license-file.workspace = true
keywords.workspace = true

[features]
internal = [
"bitwarden/internal",
"bitwarden-json/internal",
"bitwarden-uniffi/docs",
]
internal = ["bitwarden/internal", "bitwarden-json/internal"]

[dependencies]
anyhow = "1.0.82"
Expand Down
3 changes: 0 additions & 3 deletions crates/sdk-schemas/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,5 @@ struct SchemaTypes {
fn main() -> Result<()> {
write_schema_for!("schema_types", SchemaTypes);

#[cfg(feature = "internal")]
write_schema_for!(bitwarden_uniffi::docs::DocRef);

Ok(())
}
64 changes: 0 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "2.13.4",
"handlebars": "^4.7.8",
"prettier": "3.3.3",
"quicktype-core": "23.0.170",
"rimraf": "6.0.1",
Expand Down
139 changes: 0 additions & 139 deletions support/docs/docs.ts

This file was deleted.

12 changes: 0 additions & 12 deletions support/docs/rustdoc.ts

This file was deleted.

Loading

0 comments on commit 7e663e9

Please sign in to comment.