# nef **Repository Path**: spm_mirror1/nef ## Basic Information - **Project Name**: nef - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-14 - **Last Updated**: 2024-06-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 
`nef`, short for [Nefertiti](https://en.wikipedia.org/wiki/Nefertiti), mother of Ankhesenamun, is a toolset to ease the **creation of documentation** in the form of Xcode Playgrounds. It provides compile-time **verification** of documentation, exports it in **Markdown** format that can be consumed by [Jekyll](https://jekyllrb.com/) to generate websites, and export [Carbon](https://carbon.now.sh/) snippets for a given Xcode Playground. `nef` is inspired by [ΛNK](https://github.com/arrow-kt/ank) for Kotlin and [tut](https://github.com/tpolecat/tut) for Scala. ### Features 💡 Eases the creation of Xcode Playgrounds with support for [__third party libraries__](#-creating-a-nef-playground). 💡 [__Compiles Xcode Playgrounds__](#-compiling-a-nef-playground) with support for 3rd-party libraries from the command line. 💡 Builds a [__Playground Book__](#-creating-a-playground-book) for iPad with external dependencies defined in a Swift Package. 💡 Generates [__Markdown__](#-generating-a-markdown-project) project from nef Playground. 💡 Generates Markdown files that can be consumed from [__Jekyll__](#-generating-markdown-files-for-jekyll) to create a microsite. 💡 Export [__Carbon__](#-exporting-carbon-code-snippets) code snippets for a given nef Playground. ## 💻 Installation #### 📟 Using [Homebrew](https://github.com/bow-swift/homebrew-nef) (preferred) ```bash ➜ brew install nef ``` > It will warn you if there is a missing dependency and will provide guidance to install it. #### 📦 Using [Swift Package Manager](https://developer.apple.com/documentation/xcode/creating_a_swift_package_with_xcode) `nef` can be consumed as a library in your **macOS project**. ```swift .package(url: "https://github.com/bow-swift/nef.git", from: "{version}") ``` It is an excellent option if you want to use all nef features in your macOS app, even to build new tooling on top of nef. > You can read more about how to use nef library in the [**nef site**](https://nef.bow-swift.io/docs/library/how-to-use-nef-library-/). #### 🔌 Using [Xcode Editor Extension](https://github.com/bow-swift/nef-plugin) Some of `nef` features can be used directly in Xcode as an Extension. You can install it directly from [**App Store**](https://apps.apple.com/app/nef/id1479391704?mt=8) or downloading the last binary from the [**releases section**](https://github.com/bow-swift/nef-plugin/releases). #### 📲 Using your [iPad](https://github.com/bow-swift/nef-editor-client) You can create Swift Playgrounds -together with third-party libraries- directly in your iPad using the app [**nef Playgrounds**](https://apps.apple.com/us/app/nef-playgrounds/id1511012848). #### Using a [GitHub badge](https://github.com/bow-swift/nef-playgrounds-badge) You can create a [**nef badge**](https://badge.bow-swift.io) for your GitHub repository, and let users try your project in their iPads.
| Command | Description | Format | Options | Default |
|---|---|---|---|---|
--background |
Background color applied to image | hexadecimal #AABBCC, #AABBCCDD or predefined colors |
nef bow white green blue yellow orange
| nef |
--theme |
Carbon's theme to be applied | String | base16-dark blackboard cobalt duotone-dark dracula hopscotch lucario material monokai night-owl nord oceanic-next one-dark panda-syntax paraiso-dark seti shades-of-purple synthwave-84 tomorrow-night-bright twilight verminal vscode zenburn |
dracula |
--size |
Export file dimensions | Number | [1, 5] |
2 |
--font |
Font type | String | firaCode hack inconsolata iosevka monoid anonymousPro sourceCodePro darkMono droidMono fantasqueMono ibmPlexMono spaceMono ubuntuMono |
firaCode |
--show-lines |
shows/hides number of lines in code snippet | Bool | true false |
true |
--show-watermark |
shows/hides watermark in code snippet | Bool | true false |
true |