Skip to content

Commit

Permalink
name change
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Oct 24, 2023
1 parent d45b8d4 commit b7016eb
Show file tree
Hide file tree
Showing 24 changed files with 114 additions and 110 deletions.
75 changes: 0 additions & 75 deletions FSharp.Data.NBFormat.sln

This file was deleted.

79 changes: 79 additions & 0 deletions NBFormat.NET.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{802031E4-754A-46C9-AE31-DCB1D08EB9A4}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{44768815-2E7C-4C24-9743-0559F3C0F13B}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "build", "build\build.fsproj", "{E910F030-7CF8-41E1-BA4B-E6DD043FEDE9}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{73C12042-7974-4CED-9443-1852238D4AE5}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".ci", ".ci", "{6A918720-2F9B-4449-9D4A-B8620E49A4E2}"
ProjectSection(SolutionItems) = preProject
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
EndProjectSection
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "NBFormat.NET", "src\NBFormat.NET\NBFormat.NET.fsproj", "{7C5A9AE8-302D-44AC-90E1-4F28F3396E2F}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "NBConvert.NET", "src\NBConvert.NET\NBConvert.NET.fsproj", "{E25DCC4B-C798-42EC-B4E3-3CD646DE8BAA}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "NBConvert.NET.Tool", "src\NBConvert.NET.Tool\NBConvert.NET.Tool.fsproj", "{AED1C704-1C13-49F1-A2E9-AA3A2695456A}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "NBFormat.NET.Tests", "tests\NBFormat.NET.Tests\NBFormat.NET.Tests.fsproj", "{9EB78D66-E4CF-4E22-88E6-B71D2C79F197}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{4EA12D61-5D78-474A-A7E9-58B24870B8E1}"
ProjectSection(SolutionItems) = preProject
build.cmd = build.cmd
build.sh = build.sh
global.json = global.json
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E910F030-7CF8-41E1-BA4B-E6DD043FEDE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E910F030-7CF8-41E1-BA4B-E6DD043FEDE9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E910F030-7CF8-41E1-BA4B-E6DD043FEDE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E910F030-7CF8-41E1-BA4B-E6DD043FEDE9}.Release|Any CPU.Build.0 = Release|Any CPU
{7C5A9AE8-302D-44AC-90E1-4F28F3396E2F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7C5A9AE8-302D-44AC-90E1-4F28F3396E2F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7C5A9AE8-302D-44AC-90E1-4F28F3396E2F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7C5A9AE8-302D-44AC-90E1-4F28F3396E2F}.Release|Any CPU.Build.0 = Release|Any CPU
{E25DCC4B-C798-42EC-B4E3-3CD646DE8BAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E25DCC4B-C798-42EC-B4E3-3CD646DE8BAA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E25DCC4B-C798-42EC-B4E3-3CD646DE8BAA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E25DCC4B-C798-42EC-B4E3-3CD646DE8BAA}.Release|Any CPU.Build.0 = Release|Any CPU
{AED1C704-1C13-49F1-A2E9-AA3A2695456A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AED1C704-1C13-49F1-A2E9-AA3A2695456A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AED1C704-1C13-49F1-A2E9-AA3A2695456A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AED1C704-1C13-49F1-A2E9-AA3A2695456A}.Release|Any CPU.Build.0 = Release|Any CPU
{9EB78D66-E4CF-4E22-88E6-B71D2C79F197}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9EB78D66-E4CF-4E22-88E6-B71D2C79F197}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9EB78D66-E4CF-4E22-88E6-B71D2C79F197}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9EB78D66-E4CF-4E22-88E6-B71D2C79F197}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{E910F030-7CF8-41E1-BA4B-E6DD043FEDE9} = {4EA12D61-5D78-474A-A7E9-58B24870B8E1}
{7C5A9AE8-302D-44AC-90E1-4F28F3396E2F} = {802031E4-754A-46C9-AE31-DCB1D08EB9A4}
{E25DCC4B-C798-42EC-B4E3-3CD646DE8BAA} = {802031E4-754A-46C9-AE31-DCB1D08EB9A4}
{AED1C704-1C13-49F1-A2E9-AA3A2695456A} = {802031E4-754A-46C9-AE31-DCB1D08EB9A4}
{9EB78D66-E4CF-4E22-88E6-B71D2C79F197} = {44768815-2E7C-4C24-9743-0559F3C0F13B}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {24E53BF2-6F6D-4AF2-B939-CB92C0ACB9D1}
EndGlobalSection
EndGlobal
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This library aims to close that gap by

### build

Check the [build project](https://github.com/kMutagene/FSharp.Data.NBFormat/blob/main/build) to take a look at the build targets. Here are some examples:
Check the [build project](https://github.com/kMutagene/NBFormat.NET/blob/main/build) to take a look at the build targets. Here are some examples:

```shell
# Windows
Expand Down Expand Up @@ -42,7 +42,7 @@ The library is not on nuget currently, so you currently have to clone the repo a
Then you can use it to deserialize a notebook file like this:

```fsharp
open FSharp.Data.NBFormat
open NBFormat.NET
open System.IO
"your/path/to/a/notebook.ipynb"
Expand Down
4 changes: 2 additions & 2 deletions build/ProjectInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

open Fake.Core

let project = "FSharp.Data.NBFormat"
let project = "NBFormat.NET"

let testProjects =
[
"tests/FSharp.Data.NBFormat.Tests/FSharp.Data.NBFormat.Tests.fsproj"
"tests/NBFormat.NET.Tests/NBFormat.NET.Tests.fsproj"
]

let solutionFile = $"{project}.sln"
Expand Down
7 changes: 0 additions & 7 deletions src/FSharp.Data.NBConvert/NotebookConverter.fs

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\FSharp.Data.NBConvert\FSharp.Data.NBConvert.fsproj" PackageVersion="[0.0.0, 1.0.0)" />
<ProjectReference Include="..\FSharp.Data.NBFormat\FSharp.Data.NBFormat.fsproj" PackageVersion="[0.0.0, 1.0.0)" />
<ProjectReference Include="..\NBFormat.NET\NBFormat.NET.fsproj" PackageVersion="[0.0.0, 1.0.0)" />
<ProjectReference Include="..\NBConvert.NET\NBConvert.NET.fsproj" PackageVersion="[0.0.0, 1.0.0)" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
open System
open System.IO
open FSharp.Data
open FSharp.Data.NBConvert
open FSharp.Data.NBFormat
open FSharp.Data.NBFormat.Domain
open NBConvert.NET
open NBFormat.NET
open NBFormat.NET.Domain

[<EntryPoint>]
let main args =
Expand All @@ -31,7 +31,7 @@ let main args =
match toFormat with
| OutputFormat.HTML ->
let outputPath = Path.Combine(outputDir, Path.GetFileNameWithoutExtension(notebookPath) + ".html")
let convertedNotebook = NBConvert.API.convert(parsedNotebook, (HTMLConverter HTMLConverterTemplates.Default))
let convertedNotebook = NBConvert.NET.API.convert(parsedNotebook, (HTMLConverter HTMLConverterTemplates.Default))
File.WriteAllText(outputPath, convertedNotebook)
| _ -> failwith "Invalid output format"
0
8 changes: 4 additions & 4 deletions src/FSharp.Data.NBConvert/API.fs → src/NBConvert.NET/API.fs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace FSharp.Data.NBConvert
namespace NBConvert.NET

open FSharp.Data.NBFormat
open FSharp.Data.NBFormat.Domain
open FSharp.Data.NBConvert
open NBFormat.NET
open NBFormat.NET.Domain
open NBConvert.NET

open Giraffe.ViewEngine

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace FSharp.Data.NBConvert
namespace NBConvert.NET

open Giraffe.ViewEngine
open FSharp.Data.NBFormat
open FSharp.Data.NBFormat.Domain
open NBFormat.NET
open NBFormat.NET.Domain
open System.Text
open System.Text.Json
open System.Text.RegularExpressions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="Giraffe.ViewEngine" Version="[1.4.0]" />
<ProjectReference Include="..\FSharp.Data.NBFormat\FSharp.Data.NBFormat.fsproj" PackageVersion="[1.0.0, 0.0.0)" />
<ProjectReference Include="..\NBFormat.NET\NBFormat.NET.fsproj" PackageVersion="[1.0.0, 0.0.0)" />
</ItemGroup>

<Target Name="UseExplicitPackageVersions" BeforeTargets="GenerateNuspec">
Expand Down
7 changes: 7 additions & 0 deletions src/NBConvert.NET/NotebookConverter.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace NBConvert.NET

open NBFormat.NET
open NBFormat.NET.Domain

type NotebookConverter =
| HTMLConverter of HTMLConverterTemplate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace FSharp.Data.NBFormat
namespace NBFormat.NET

open System.Text.Json
open System.Text.Json.Serialization
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace FSharp.Data.NBFormat
namespace NBFormat.NET

module Serialization =
open Domain
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#load "Serialization.fs"

open System.IO
open FSharp.Data.NBFormat
open NBFormat.NET

File.ReadAllText @"C:\Users\schne\Source\repos\kMutagene\FSharp.Data.NBFormat\tests\FSharp.Data.NBFormat.Tests\data\polyglot_notebook_plotly_fsharp.ipynb"
File.ReadAllText @"C:\Users\schne\Source\repos\kMutagene\NBFormat.NET\tests\NBFormat.NET.Tests\data\polyglot_notebook_plotly_fsharp.ipynb"
|> Serialiation.deserializeNotebook
|> Serialiation.serializeNotebook
|> Serialiation.deserializeNotebook
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\FSharp.Data.NBFormat\FSharp.Data.NBFormat.fsproj" />
<ProjectReference Include="..\..\src\NBFormat.NET\NBFormat.NET.fsproj" />
</ItemGroup>

</Project>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace FSharp.Data.NBFormat.Tests.notebooks
namespace NBFormat.NET.Tests.notebooks

open TestUtils
open System.Text.Json
open FSharp.Data.NBFormat
open NBFormat.NET
open Xunit

module FSharpNotebook =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module TestUtils

open FSharp.Data.NBFormat
open FSharp.Data.NBFormat.Domain
open NBFormat.NET
open NBFormat.NET.Domain
open Xunit

open System.Text.Json
Expand All @@ -11,7 +11,7 @@ open System.IO
let assembly = Assembly.GetExecutingAssembly()

let getEmbeddedResource file =
use str = assembly.GetManifestResourceStream($"FSharp.Data.NBFormat.Tests.{file}")
use str = assembly.GetManifestResourceStream($"NBFormat.NET.Tests.{file}")
use r = new StreamReader(str)
r.ReadToEnd()

Expand Down

0 comments on commit b7016eb

Please sign in to comment.