Skip to content

Commit 1780b67

Browse files
Kapil GowruKapil Gowru
authored andcommitted
feat: adding self host and mcp server
2 parents 6e239cf + d2e5490 commit 1780b67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3643
-58
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Fern Documentation
22

3-
Welcome to the Fern documentation! This repository contains the source code for Fern's comprehensive documentation site, currently live at [fern-api.docs.buildwithfern.com/learn/home](https://fern-api.docs.buildwithfern.com/learn/home).
3+
Welcome to the Fern documentation! This repository contains the source code for Fern's comprehensive documentation site, currently live at [buildwithfern.com/learn](https://buildwithfern.com/learn).
44

55
## 🚀 Quick Start
66

examples/sdks/generators.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This file configures all of your SDKs. It should be located at:
2+
# your-source-repo/fern/generators.yml.
3+
default-group: local
4+
groups:
5+
local:
6+
generators:
7+
- name: fernapi/fern-typescript-sdk
8+
output:
9+
location: local-file-system
10+
path: ../sdks/typescript
11+
version: 2.6.4
12+
# This group configures a TypeScript SDK for npm publishing
13+
ts-sdk:
14+
generators:
15+
- name: fernapi/fern-typescript-sdk
16+
version: 2.6.4
17+
output:
18+
location: npm
19+
package-name: your-unique-package-name
20+
token: ${NPM_TOKEN}
21+
config:
22+
namespaceExport: YourClientName
23+
github:
24+
repository: your-company/ts-sdk
25+
# This group configures a Python SDK for PyPi publishing
26+
python-sdk:
27+
generators:
28+
- name: fernapi/fern-python-sdk
29+
version: 4.28.0
30+
output:
31+
location: pypi
32+
package-name: devin-new-test-package
33+
token: ${PYPI_TOKEN}
34+
config:
35+
client_class_name: MyClientNameDevin
36+
github:
37+
repository: devalog/company-python-test
38+
# generator groups for other SDKs go here

examples/sdks/python-publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Python SDK
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The version of the Python SDK that you would like to release"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
18+
- name: Install Fern CLI
19+
run: npm install -g fern-api
20+
21+
- name: Release Python SDK
22+
env:
23+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
24+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
25+
run: |
26+
fern generate --group python-sdk --version ${{ inputs.version }} --log-level debug
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Add this file as: your-source-repo/.github/workflows/typescript-publish.yml
2+
# This workflow should be in the same repository as your generators.yml, which
3+
# should point to the repository containing your TypeScript SDK code.
4+
5+
name: Publish TypeScript SDK
6+
7+
on:
8+
# Manually trigger a release from the GitHub UI. Triggering this workflow kicks
9+
# off the npm publishing process from your TypeScript SDK repository.
10+
workflow_dispatch:
11+
inputs:
12+
version:
13+
description: "The version of the TypeScript SDK that you would like to release"
14+
required: true
15+
type: string
16+
17+
jobs:
18+
release:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repo
22+
uses: actions/checkout@v4
23+
24+
- name: Install Fern CLI
25+
run: npm install -g fern-api
26+
27+
- name: Release TypeScript SDK
28+
env:
29+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: |
32+
fern generate --group ts-sdk --version ${{ inputs.version }} --log-level debug

fern/apis/fai/generators.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<<<<<<< HEAD
2+
=======
3+
api:
4+
specs:
5+
- openapi: ./openapi.json
6+
>>>>>>> origin/main
17
default-group: local
28

39
groups:

0 commit comments

Comments
 (0)