Skip to content

Commit

Permalink
docs: clean comments (#279)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
  • Loading branch information
pylapp committed Nov 21, 2024
1 parent fa4a4bd commit 9557a47
Show file tree
Hide file tree
Showing 27 changed files with 41 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File generated by with the tokenator]
// [File generated by the tokenator since at least 21/11/2024]

extension OUDSTheme: BorderSemanticTokens {
@objc open var borderRadiusDefault: BorderRadiusSemanticToken { BorderRawTokens.borderRadius0 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Foundation
import OUDSTokensRaw
import OUDSTokensSemantic

// [File not generated with the tokenator]
// [File not generated by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File generated by with the tokenator]
// [File generated by the tokenator since at least 21/11/2024]

// swiftlint:disable identifier_name

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File generated by with the tokenator]
// [File generated by the tokenator since at least 21/11/2024]

extension OUDSTheme: OpacitySemanticTokens {
@objc open var opacityMedium: OpacitySemanticToken { OpacityRawTokens.opacity500 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import Foundation
import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator with Figma able to output composites and tokenatoer able to manage them]
// [File not generated by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

Expand All @@ -26,7 +25,6 @@ import OUDSTokensSemantic
/// These values can be overriden inside `OUDSTheme` subclasses (in extensions or not, in the same module or not) thanks to the `@objc open` combination.
/// The aim of this extensions is to make relationships between all composite semantic tokens for typography and associated composite raw tokens.
/// `OUDSTheme` can be seen as a kind of "abstract class" in _object oriented paradigm_.
///
extension OUDSTheme: TypographyCompositeSemanticTokens {

// MARK: - Semantic tokens - Typography - Composites - Display
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// WARNING: Not synchronized anymore with the Figjam
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

// swiftlint:disable line_length
// swiftlint:disable file_length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
// Software description: A SwiftUI components library with code examples for Orange Unified Design System
//

/// This enum helps to add new raw tokens for this theme.
/// This enum helps to add new **color raw tokens** exclusive to this theme.
/// Such tokens are packed in a _Swift enum_ so as to gather them in one object with the suitable namespace and avoid to have just constants in nothing else
/// (i.e. publicly accessible from everywhere). More optimized than _struct_.
public enum OrangeBrandColorRawTokens {

// ଘ( ・ω・)_/゚・:*:・。☆
// Note: So as to help the Figma-JSON-to-Swift parser the values have been added in the Values folder
// Note: So as to help the tokenator, the values have been added in the Values folder
// This trick helps also to write documentation for these tokens as the tokenator cannot generate documentation
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
// Software description: A SwiftUI components library with code examples for Orange Unified Design System
//

/// This enum helps to add new raw tokens for this theme.
/// This enum helps to add new **typography raw tokens** exclusive to this theme.
/// Such tokens are packed in a _Swift enum_ so as to gather them in one object with the suitable namespace and avoid to have just constants in nothing else
/// (i.e. publicly accessible from everywhere). More optimized than _struct_.
public enum OrangeBrandTypographyRawTokens {

// ଘ( ・ω・)_/゚・:*:・。☆
// Note: So as to help the Figma-JSON-to-Swift parser the values have been added in the Values folder
// Note: So as to help the tokenator, the values have been added in the Values folder
// This trick helps also to write documentation for these tokens as the tokenator cannot generate documentation
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import OUDSTokensRaw
import OUDSTokensSemantic

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

// swiftlint:disable line_length

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@

import OUDSTokensRaw

/// An `OrangeBrandTypographyRawToken` is just a `TypographyFontFamilyRawToken` type
/// An `OrangeBrandTypographyRawToken` is just a TypographyFontFamilyRawToken` type
public typealias OrangeBrandTypographyRawToken = TypographyFontFamilyRawToken
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

import OUDSTokensRaw

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

// swiftlint:disable missing_docs

extension OrangeBrandColorRawTokens {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
//

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

// swiftlint:disable missing_docs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
public enum BorderRawTokens {

// ଘ( ・ω・)_/゚・:*:・。☆
// Note: So as to help the Figma-JSON-to-Swift parser the values have been added in the Values folder
// Note: So as to help the tokenator, the values have been added in the Values folder
// This trick helps also to write documentation for these tokens as the tokenator cannot generate documentation
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
public enum ColorRawTokens {

// ଘ( ・ω・)_/゚・:*:・。☆
// Note: So as to help the Figma-JSON-to-Swift parser the values have been added in the Values folder
// Note: So as to help the tokenator, the values have been added in the Values folder
// This trick helps also to write documentation for these tokens as the tokenator cannot generate documentation

/// Applies to a color in its hexadecimal representation the given `opacity`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
public enum DimensionRawTokens {

// ଘ( ・ω・)_/゚・:*:・。☆
// Note: So as to help the Figma-JSON-to-Swift parser the values have been added in the Values folder
// Note: So as to help the tokenator, the values have been added in the Values folder
// This trick helps also to write documentation for these tokens as the tokenator cannot generate documentation
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
public enum ElevationRawTokens {

// ଘ( ・ω・)_/゚・:*:・。☆
// Note: So as to help the Figma-JSON-to-Swift parser the values have been added in the Values folder
// Note: So as to help the tokenator, the values have been added in the Values folder
// This trick helps also to write documentation for these tokens as the tokenator cannot generate documentation
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
public enum GridRawTokens {

// ଘ( ・ω・)_/゚・:*:・。☆
// Note: So as to help the Figma-JSON-to-Swift parser the values have been added in the Values folder
// Note: So as to help the tokenator, the values have been added in the Values folder
// This trick helps also to write documentation for these tokens as the tokenator cannot generate documentation
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
public enum OpacityRawTokens {

// ଘ( ・ω・)_/゚・:*:・。☆
// Note: So as to help the Figma-JSON-to-Swift parser the values have been added in the Values folder
// Note: So as to help the tokenator, the values have been added in the Values folder
// This trick helps also to write documentation for these tokens as the tokenator cannot generate documentation
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
public enum TypographyRawTokens {

// ଘ( ・ω・)_/゚・:*:・。☆
// Note: So as to help the Figma-JSON-to-Swift parser the values have been added in the Values folder
// Note: So as to help the tokenator, the values have been added in the Values folder
// This trick helps also to write documentation for these tokens as the tokenator cannot generate documentation
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team
// Create an issue for update https://github.com/Orange-OpenSource/ouds-ios/issues/new?template=token_update.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//

// ଘ( ・ω・)_/゚・:*:・。☆
// [File to generate with the tokenator]
// [File to generate by the tokenator]
// WARNING: Not synchronized anymore with the Figjam / Figma by developers team

// swiftlint:disable missing_docs
Expand Down

0 comments on commit 9557a47

Please sign in to comment.